Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Nov 18, 2024
1 parent 3cfdcee commit 3af3933
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/netsuite/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@ def get_tax_group_mapping(lineitem: Expense = None, workspace_id: int = None):

def get_tax_item_id_or_none(expense_group: ExpenseGroup, general_mapping: GeneralMapping, lineitem: Expense = None):
tax_code = None
mapping_settings: MappingSetting = MappingSetting.objects.filter(
expense_group.workspace_id, destination_field='TAX_ITEM').first()
tax_setting: MappingSetting = MappingSetting.objects.filter(
workspace_id=expense_group.workspace_id,
destination_field='TAX_ITEM'
).first()

if mapping_settings:
if tax_setting:
mapping = get_tax_group_mapping(lineitem, expense_group.workspace_id)

if mapping:
Expand Down

0 comments on commit 3af3933

Please sign in to comment.