diff --git a/modules/customer-invoices/src/api/application/proformas/snapshot-builders/report/proforma-items-report-snapshot-builder.ts b/modules/customer-invoices/src/api/application/proformas/snapshot-builders/report/proforma-items-report-snapshot-builder.ts index f4ae9b0a..0837cd97 100644 --- a/modules/customer-invoices/src/api/application/proformas/snapshot-builders/report/proforma-items-report-snapshot-builder.ts +++ b/modules/customer-invoices/src/api/application/proformas/snapshot-builders/report/proforma-items-report-snapshot-builder.ts @@ -51,6 +51,31 @@ export class ProformaItemReportSnapshotBuilder implements IProformaItemReportSna taxable_amount: item.is_valued ? MoneyDTOHelper.format(item.taxable_amount, locale, moneyOptions) : "", + + iva_name: item.iva_code ?? null, + iva_percentage: item.iva_percentage + ? PercentageDTOHelper.format(item.iva_percentage, locale) + : null, + iva_amount: item.iva_amount + ? MoneyDTOHelper.format(item.iva_amount, locale, moneyOptions) + : null, + + rec_name: item.rec_code ?? null, + rec_percentage: item.rec_percentage + ? PercentageDTOHelper.format(item.rec_percentage, locale) + : null, + rec_amount: item.rec_amount + ? MoneyDTOHelper.format(item.rec_amount, locale, moneyOptions) + : null, + + retention_name: item.retention_code ?? null, + retention_percentage: item.retention_percentage + ? PercentageDTOHelper.format(item.retention_percentage, locale) + : null, + retention_amount: item.retention_amount + ? MoneyDTOHelper.format(item.retention_amount, locale, moneyOptions) + : null, + taxes_amount: item.is_valued ? MoneyDTOHelper.format(item.taxes_amount, locale, moneyOptions) : "", diff --git a/modules/customer-invoices/src/api/application/proformas/snapshot-builders/report/proforma-report-item-snapshot.interface.ts b/modules/customer-invoices/src/api/application/proformas/snapshot-builders/report/proforma-report-item-snapshot.interface.ts index 9ffb33fa..5493bfc9 100644 --- a/modules/customer-invoices/src/api/application/proformas/snapshot-builders/report/proforma-report-item-snapshot.interface.ts +++ b/modules/customer-invoices/src/api/application/proformas/snapshot-builders/report/proforma-report-item-snapshot.interface.ts @@ -11,6 +11,19 @@ export interface ProformaReportItemSnapshot { discount_percentage: string; discount_amount: string; taxable_amount: string; + + iva_name: string | null; + iva_percentage: string | null; + iva_amount: string | null; + + rec_name: string | null; + rec_percentage: string | null; + rec_amount: string | null; + + retention_name: string | null; + retention_percentage: string | null; + retention_amount: string | null; + taxes_amount: string; total_amount: string; }