From a6ef17876124c29f9290f7541275c8f33340826b Mon Sep 17 00:00:00 2001 From: ravibharathi656 Date: Tue, 20 Jan 2026 12:31:30 +0530 Subject: [PATCH] fix: group item wise tax details by tax row (cherry picked from commit 57bd1facf54df1d1c35f98e33c86b4e320527f71) # Conflicts: # erpnext/regional/italy/utils.py --- erpnext/regional/italy/utils.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/erpnext/regional/italy/utils.py b/erpnext/regional/italy/utils.py index d996ff9b2ac..481714ea04e 100644 --- a/erpnext/regional/italy/utils.py +++ b/erpnext/regional/italy/utils.py @@ -141,6 +141,17 @@ def download_zip(files, output_filename): def get_invoice_summary(items, taxes): summary_data = frappe._dict() +<<<<<<< HEAD +======= + taxes_wise_tax_details = {} + + for d in item_wise_tax_details: + if d.tax_row not in taxes_wise_tax_details: + taxes_wise_tax_details[d.tax_row] = [] + + taxes_wise_tax_details[d.tax_row].append(d) + +>>>>>>> 57bd1facf5 (fix: group item wise tax details by tax row) for tax in taxes: # Include only VAT charges. if tax.charge_type == "Actual":