refactor: use correct method parameters

This commit is contained in:
ruthra kumar
2024-12-31 16:48:13 +05:30
parent bcd3b36821
commit fd2a1a0ba0
2 changed files with 6 additions and 6 deletions

View File

@@ -134,8 +134,8 @@ class calculate_taxes_and_totals:
def update_item_tax_map(self):
for item in self.doc.items:
item.item_tax_rate = get_item_tax_map(
doc=self.doc,
tax_template=item.item_tax_template,
company=self.doc.get("company"),
item_tax_template=item.item_tax_template,
as_json=True,
)