Skip to content

Commit

Permalink
fix: pos invoice merge to more detailed item wise tax detail
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Sep 26, 2024
1 parent 21d8234 commit d0947ad
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,13 @@ def update_item_wise_tax_detail(consolidate_tax_row, tax_row):
if consolidated_tax_detail.get(item_code):
consolidated_tax_data = consolidated_tax_detail.get(item_code)
consolidated_tax_detail.update(
{item_code: [consolidated_tax_data[0], consolidated_tax_data[1] + tax_data[1]]}
{
item_code: [
consolidated_tax_data[0],
consolidated_tax_data[1] + tax_data[1],
consolidated_tax_data[2] + tax_data[2],
]
}
)
else:
consolidated_tax_detail.update({item_code: [tax_data[0], tax_data[1]]})
Expand Down

0 comments on commit d0947ad

Please sign in to comment.