Skip to content

Commit

Permalink
fix: tax validate (#684)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions <[email protected]>
  • Loading branch information
ruuushhh and GitHub Actions authored Nov 27, 2024
1 parent 3b6724a commit 0e5c6cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/netsuite/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,11 +843,11 @@ def __validate_tax_group_mapping(expense_group: ExpenseGroup, configuration: Con

for lineitem in expenses:
if configuration.import_tax_items and lineitem.tax_group_id:
tax_group = ExpenseAttribute.objects.get(
tax_group = ExpenseAttribute.objects.filter(
workspace_id=expense_group.workspace_id,
attribute_type='TAX_GROUP',
source_id=lineitem.tax_group_id
)
).order_by('-updated_at').first()

tax_code = Mapping.objects.filter(
source_type='TAX_GROUP',
Expand Down

0 comments on commit 0e5c6cd

Please sign in to comment.