From 59dfb62a4ab237e8316153f11770d46180e0d462 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 13 Nov 2024 16:08:33 +0530 Subject: [PATCH] fix comments --- apps/netsuite/connector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/netsuite/connector.py b/apps/netsuite/connector.py index fad7f2cc..a264b811 100644 --- a/apps/netsuite/connector.py +++ b/apps/netsuite/connector.py @@ -1206,7 +1206,7 @@ def handle_taxed_line_items(self, base_line, line, workspace_id, export_module): untaxed_line['debit'] = untaxed_amount untaxed_line.pop('amount', None) - if export_module not in ('CREDIT_CARD_CHARGE', 'BILL'): + if export_module in ('EXPENSE_REPORT', 'JOURNAL_ENTRY'): taxable_line['tax1Amt'] = round(line.tax_amount, 2) # Tax is applied to this line if export_module == 'BILL' and taxable_line.get('rate'): @@ -1219,7 +1219,7 @@ def handle_taxed_line_items(self, base_line, line, workspace_id, export_module): base_line['amount'] = round(original_amount - line.tax_amount, 2) base_line['taxCode']['internalId'] = line.tax_item_id - if export_module not in ('CREDIT_CARD_CHARGE', 'BILL'): + if export_module in ('EXPENSE_REPORT', 'JOURNAL_ENTRY'): base_line['tax1Amt'] = round(line.tax_amount, 2) # Tax is applied to this line if export_module == 'BILL' and base_line.get('rate'):