feat(report): add IVA, rec, and retention fields to proforma report item snapshot
This commit is contained in:
parent
4bb5f8dd82
commit
396feb4fa4
@ -51,6 +51,31 @@ export class ProformaItemReportSnapshotBuilder implements IProformaItemReportSna
|
|||||||
taxable_amount: item.is_valued
|
taxable_amount: item.is_valued
|
||||||
? MoneyDTOHelper.format(item.taxable_amount, locale, moneyOptions)
|
? 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
|
taxes_amount: item.is_valued
|
||||||
? MoneyDTOHelper.format(item.taxes_amount, locale, moneyOptions)
|
? MoneyDTOHelper.format(item.taxes_amount, locale, moneyOptions)
|
||||||
: "",
|
: "",
|
||||||
|
|||||||
@ -11,6 +11,19 @@ export interface ProformaReportItemSnapshot {
|
|||||||
discount_percentage: string;
|
discount_percentage: string;
|
||||||
discount_amount: string;
|
discount_amount: string;
|
||||||
taxable_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;
|
taxes_amount: string;
|
||||||
total_amount: string;
|
total_amount: string;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user