feat(billing): renewals, coupons, VAT numbering, billing cycles and invoice payment tracking
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
ea9a53f742
commit
25f23d541e
@@ -12,7 +12,7 @@
|
||||
'footer_text' => '',
|
||||
'footer_note' => '',
|
||||
], $cfg ?? []);
|
||||
$invoiceDate = $invoice->created_at ?? now();
|
||||
$invoiceDate = $invoice->vat_issued_at ?? $invoice->created_at ?? now();
|
||||
$taxBase = ($invoice->total ?? 0) - ($invoice->tax ?? 0);
|
||||
$taxRate = ($taxBase > 0 && ($invoice->tax ?? 0) > 0) ? round($invoice->tax / $taxBase * 100) : 0;
|
||||
@endphp
|
||||
|
||||
Reference in New Issue
Block a user