mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 09:43:49 +00:00
fix: group item wise tax details by tax row
(cherry picked from commit 57bd1facf5)
This commit is contained in:
@@ -142,7 +142,14 @@ def download_zip(files, output_filename):
|
|||||||
|
|
||||||
def get_invoice_summary(items, taxes, item_wise_tax_details):
|
def get_invoice_summary(items, taxes, item_wise_tax_details):
|
||||||
summary_data = frappe._dict()
|
summary_data = frappe._dict()
|
||||||
taxes_wise_tax_details = {d.tax_row: d for d in item_wise_tax_details}
|
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)
|
||||||
|
|
||||||
for tax in taxes:
|
for tax in taxes:
|
||||||
# Include only VAT charges.
|
# Include only VAT charges.
|
||||||
if tax.charge_type == "Actual":
|
if tax.charge_type == "Actual":
|
||||||
|
|||||||
Reference in New Issue
Block a user