From 2893ae72f54c979241c39721ff72647be70dcfae Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Sat, 8 Jul 2023 06:49:39 +0530 Subject: [PATCH] fix: gst_hsn_code is ambiguous on gst reports (cherry picked from commit 3a00052b496f645b9930a8f8c5d4cb43736a2011) --- .../gst_itemised_purchase_register.py | 2 +- .../gst_itemised_sales_register/gst_itemised_sales_register.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/regional/report/gst_itemised_purchase_register/gst_itemised_purchase_register.py b/erpnext/regional/report/gst_itemised_purchase_register/gst_itemised_purchase_register.py index fec63f2f18a4..4dcdf4b88e2c 100644 --- a/erpnext/regional/report/gst_itemised_purchase_register/gst_itemised_purchase_register.py +++ b/erpnext/regional/report/gst_itemised_purchase_register/gst_itemised_purchase_register.py @@ -28,7 +28,7 @@ def execute(filters=None): "gst_category", "export_type", "ecommerce_gstin", - "gst_hsn_code", + "`tabPurchase Invoice Item`.gst_hsn_code", "bill_no", "bill_date", ], diff --git a/erpnext/regional/report/gst_itemised_sales_register/gst_itemised_sales_register.py b/erpnext/regional/report/gst_itemised_sales_register/gst_itemised_sales_register.py index aef69b178689..3280c75fb348 100644 --- a/erpnext/regional/report/gst_itemised_sales_register/gst_itemised_sales_register.py +++ b/erpnext/regional/report/gst_itemised_sales_register/gst_itemised_sales_register.py @@ -39,7 +39,7 @@ def execute(filters=None): "gst_category", "export_type", "ecommerce_gstin", - "gst_hsn_code", + "`tabSales Invoice Item`.gst_hsn_code", ] additional_conditions = get_conditions(filters, additional_query_columns)