mirror of
https://github.com/frappe/books.git
synced 2025-01-23 15:18:24 +00:00
Merge pull request #924 from AbleKSaju/fix-QuoteDiscountAmount
feat: discount field in Sales Quote Print template
This commit is contained in:
commit
dbd09ecd25
@ -56,8 +56,8 @@ export async function getPrintTemplatePropValues(
|
||||
...printValues,
|
||||
...accountingValues,
|
||||
};
|
||||
|
||||
if (doc.schemaName?.endsWith('Invoice')) {
|
||||
const discountSchema = ['Invoice', 'Quote'];
|
||||
if (discountSchema.some((value) => doc.schemaName?.endsWith(value))) {
|
||||
(values.doc as PrintTemplateData).totalDiscount =
|
||||
formattedTotalDiscount(doc);
|
||||
(values.doc as PrintTemplateData).showHSN = showHSN(doc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user