From 5af88a7fb16836af7a3b3c4105c02d23eaabd618 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 26 Sep 2024 11:18:44 +0200 Subject: [PATCH] fix: pos invoice merge to more detailed item wise tax detail --- .../pos_invoice_merge_log/pos_invoice_merge_log.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/pos_invoice_merge_log/pos_invoice_merge_log.py b/erpnext/accounts/doctype/pos_invoice_merge_log/pos_invoice_merge_log.py index 5cd50f143e7..2f15f892f87 100644 --- a/erpnext/accounts/doctype/pos_invoice_merge_log/pos_invoice_merge_log.py +++ b/erpnext/accounts/doctype/pos_invoice_merge_log/pos_invoice_merge_log.py @@ -339,10 +339,16 @@ 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]]}) + consolidated_tax_detail.update({item_code: [tax_data[0], tax_data[1], tax_data[2]]}) consolidate_tax_row.item_wise_tax_detail = json.dumps(consolidated_tax_detail, separators=(",", ":"))