mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
fix(e-invoicing): variable scoping (#25368)
This commit is contained in:
@@ -576,7 +576,7 @@ class GSPConnector():
|
|||||||
gstin = self.get_seller_gstin()
|
gstin = self.get_seller_gstin()
|
||||||
credentials_for_gstin = [d for d in self.e_invoice_settings.credentials if d.gstin == gstin]
|
credentials_for_gstin = [d for d in self.e_invoice_settings.credentials if d.gstin == gstin]
|
||||||
if credentials_for_gstin:
|
if credentials_for_gstin:
|
||||||
self.credentials = credentials_for_gstin[0]
|
credentials = credentials_for_gstin[0]
|
||||||
else:
|
else:
|
||||||
frappe.throw(_('Cannot find e-invoicing credentials for selected Company GSTIN. Please check E-Invoice Settings'))
|
frappe.throw(_('Cannot find e-invoicing credentials for selected Company GSTIN. Please check E-Invoice Settings'))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user