Skip to content

Commit

Permalink
feat: discount field in Sales Quote Print template
Browse files Browse the repository at this point in the history
  • Loading branch information
AbleKSaju committed Aug 12, 2024
1 parent 99e6cd5 commit 3fa552a
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))) {

Check warning on line 60 in src/utils/printTemplates.ts

View workflow job for this annotation

GitHub Actions / setup_and_lint

Replace `value` with `(value)`
(values.doc as PrintTemplateData).totalDiscount =
formattedTotalDiscount(doc);
(values.doc as PrintTemplateData).showHSN = showHSN(doc);
Expand Down

0 comments on commit 3fa552a

Please sign in to comment.