Skip to content

Commit

Permalink
fix: Fixed issue where tax template[s] wasn't being autopopulated acc…
Browse files Browse the repository at this point in the history
…ording to the item's tax code selected when classifying an item.
  • Loading branch information
GichanaMayaka committed Jun 4, 2024
1 parent 250e45f commit 3a0a56b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kenya_compliance/kenya_compliance/overrides/server/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def validate(doc: Document, method: str) -> None:
"Item Tax Template",
["*"],
{
"name": ["like", "%Kenya%"],
"custom_etims_taxation_type": doc.custom_taxation_type,
},
)
Expand All @@ -71,4 +70,3 @@ def validate(doc: Document, method: str) -> None:
doc.set("taxes", [])
for template in relevant_tax_templates:
doc.append("taxes", {"item_tax_template": template.name})

0 comments on commit 3a0a56b

Please sign in to comment.