feat: Map the invoice preview data

This commit is contained in:
Ahmed Bouhuolia
2024-09-19 14:32:14 +02:00
parent 16eaacd4bc
commit 0ae7a25c27
8 changed files with 112 additions and 20 deletions

View File

@@ -99,16 +99,16 @@ export function InvoicePaperTemplate({
dueDate = 'September 3, 2024',
dueDateLabel = 'Date due',
showDueDate,
showDueDate = true,
dateIssue = 'September 3, 2024',
dateIssueLabel = 'Date of issue',
showDateIssue,
showDateIssue = true,
// dateIssue,
invoiceNumberLabel = 'Invoice number',
invoiceNumber = '346D3D40-0001',
showInvoiceNumber,
showInvoiceNumber = true,
// Address
showBillingToAddress = true,
@@ -281,12 +281,12 @@ export function InvoicePaperTemplate({
</Stack>
<Stack spacing={0}>
{showTermsConditions && (
{showTermsConditions && termsConditions && (
<PaperTemplate.Statement label={termsConditionsLabel}>
{termsConditions}
</PaperTemplate.Statement>
)}
{showStatement && (
{showStatement && statement && (
<PaperTemplate.Statement label={statementLabel}>
{statement}
</PaperTemplate.Statement>