Merge pull request #33313 from nabinhait/tax_detail_report_perm_issue

fix: Permission issue in Tax Detail report
This commit is contained in:
ruthra kumar 2022-12-13 14:27:08 +05:30 committed by GitHub
commit 3db446e35a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,8 +234,11 @@ def modify_report_columns(doctype, field, column):
if field in ["item_tax_rate", "base_net_amount"]: if field in ["item_tax_rate", "base_net_amount"]:
return None return None
if doctype == "GL Entry" and field in ["debit", "credit"]: if doctype == "GL Entry":
column.update({"label": _("Amount"), "fieldname": "amount"}) if field in ["debit", "credit"]:
column.update({"label": _("Amount"), "fieldname": "amount"})
elif field == "voucher_type":
column.update({"fieldtype": "Data", "options": ""})
if field == "taxes_and_charges": if field == "taxes_and_charges":
column.update({"label": _("Taxes and Charges Template")}) column.update({"label": _("Taxes and Charges Template")})