From 93a186aa11c51a24b9a62302ce67d4a004dfe9e5 Mon Sep 17 00:00:00 2001 From: Zarrar Date: Tue, 22 May 2018 09:16:42 +0530 Subject: [PATCH] fetch customer_gstin or billing_address_gstin optionally (#14075) --- erpnext/regional/report/gstr_1/gstr_1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/regional/report/gstr_1/gstr_1.py b/erpnext/regional/report/gstr_1/gstr_1.py index a14500acaf..52f0748c5d 100644 --- a/erpnext/regional/report/gstr_1/gstr_1.py +++ b/erpnext/regional/report/gstr_1/gstr_1.py @@ -23,7 +23,7 @@ class Gstr1Report(object): posting_date, base_grand_total, base_rounded_total, - customer_gstin, + COALESCE(NULLIF(customer_gstin,''), NULLIF(billing_address_gstin, '')) as customer_gstin, place_of_supply, ecommerce_gstin, reverse_charge,