fix: due invoice server invoice

This commit is contained in:
Ahmed Bouhuolia
2024-11-06 17:24:42 +02:00
parent 107532fe26
commit e9d34e19ad
4 changed files with 16 additions and 17 deletions

View File

@@ -338,21 +338,22 @@ export interface InvoicePdfTemplateAttributes {
subtotalLabel: string;
discountLabel: string;
paymentMadeLabel: string;
balanceDueLabel: string;
showTotal: boolean;
showSubtotal: boolean;
showDiscount: boolean;
showTaxes: boolean;
showPaymentMade: boolean;
showDueAmount: boolean;
showBalanceDue: boolean;
total: string;
subtotal: string;
discount: string;
paymentMade: string;
balanceDue: string;
// Due Amount
dueAmount: string;
showDueAmount: boolean;
dueAmountLabel: string;
termsConditionsLabel: string;
showTermsConditions: boolean;

View File

@@ -19,9 +19,6 @@ export class SaleInvoicePdf {
@Inject()
private chromiumlyTenancy: ChromiumlyTenancy;
@Inject()
private templateInjectable: TemplateInjectable;
@Inject()
private getInvoiceService: GetSaleInvoice;

View File

@@ -27,7 +27,7 @@ export const transformInvoiceToPdfTemplate = (
total: invoice.totalFormatted,
subtotal: invoice.subtotalFormatted,
paymentMade: invoice.paymentAmountFormatted,
balanceDue: invoice.balanceAmountFormatted,
dueAmount: invoice.dueAmountFormatted,
termsConditions: invoice.termsConditions,
statement: invoice.invoiceMessage,