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