Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh committed May 30, 2024
1 parent 3c3adc7 commit 72e9e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/quickbooks_online/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ def __construct_credit_card_purchase(self, credit_card_purchase: CreditCardPurch
if general_settings.import_tax_codes:
credit_card_purchase_payload.update({'TxnTaxDetail': {'TaxLine': []}})

for line_item in line:
for line_item in credit_card_purchase_lineitems:
tax_code_id = line_item.tax_code if (line_item.tax_code and line_item.tax_amount is not None) else general_mappings.default_tax_code_id

destination_attribute = DestinationAttribute.objects.filter(destination_id=tax_code_id, attribute_type='TAX_CODE', workspace_id=self.workspace_id).first()
Expand Down

0 comments on commit 72e9e96

Please sign in to comment.