mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
fix: pdf template customization
This commit is contained in:
@@ -9,7 +9,6 @@ export const mergePdfTemplateWithDefaultAttributes = (
|
||||
brandingTemplate,
|
||||
(val, key) => val !== null && Object.keys(defaultAttributes).includes(key)
|
||||
);
|
||||
|
||||
return {
|
||||
...defaultAttributes,
|
||||
...brandingAttributes,
|
||||
@@ -39,5 +38,9 @@ export const transformInvoiceToPdfTemplate = (
|
||||
quantity: entry.quantityFormatted,
|
||||
total: entry.totalFormatted,
|
||||
})),
|
||||
taxes: invoice.taxes.map((tax) => ({
|
||||
label: tax.name,
|
||||
amount: tax.taxRateAmountFormatted,
|
||||
})),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user