Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 16:10:24 +00:00
co-authored by renee-png
parent 8b4318f9c3
commit 707964f31c
@@ -328,7 +328,11 @@ export function GenerateInvoiceDialog({ open, onOpenChange, clientId, clientName
disabled={saving || (!isRetainer && (cases.length === 0 || selectedIds.length === 0))}
>
{saving ? <Loader2 className="h-4 w-4 mr-2 animate-spin" /> : <FilePlus className="h-4 w-4 mr-2" />}
{isRetainer ? "Create retainer invoice" : "Generate draft invoice"}
{isRetainer
? "Create retainer invoice"
: splitPerCase && selectedIds.length > 1
? `Generate ${selectedIds.length} draft invoices`
: "Generate draft invoice"}
</Button>
</DialogFooter>
</DialogContent>