Skip to content

Commit

Permalink
Merge pull request #924 from AbleKSaju/fix-QuoteDiscountAmount
Browse files Browse the repository at this point in the history
feat: discount field in Sales Quote Print template
  • Loading branch information
akshayitzme authored Aug 13, 2024
2 parents e975e29 + add19ef commit dbd09ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/printTemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dbd09ec

Please sign in to comment.