Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Nov 13, 2024
1 parent 9dac1c5 commit 59dfb62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/netsuite/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand All @@ -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'):
Expand Down

0 comments on commit 59dfb62

Please sign in to comment.