Skip to content

Commit

Permalink
add support for taxes in canadian orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
NileshPant1999 committed Jan 17, 2024
1 parent 4f295e3 commit 56190a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/netsuite/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ def construct_credit_card_charge_lineitems(
'account': {
'internalId': line.account_id
},
'amount': line.amount,
'amount': line.amount - line.tax_amount if (line.tax_item_id and line.tax_amount is not None) else line.amount,
'memo': line.memo,
'grossAmt': line.amount,
'department': {
Expand All @@ -1319,10 +1319,10 @@ def construct_credit_card_charge_lineitems(
'taxAmount': None,
'taxCode': {
'name': None,
'internalId': None,
'internalId': line.tax_item_id if (line.tax_item_id and line.tax_amount is not None) else None,
'externalId': None,
'type': 'taxGroup'
},
},
}
lines.append(line)

Expand Down

0 comments on commit 56190a5

Please sign in to comment.