mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-21 11:15:10 +00:00
closes #25948
(cherry picked from commit 1eb2526d0b)
Co-authored-by: Ankush Menat <ankush@iwebnotes.com>
This commit is contained in:
@@ -3,10 +3,14 @@ import frappe
|
||||
|
||||
def execute():
|
||||
company = frappe.get_all('Company', filters = {'country': 'India'})
|
||||
if not company or not frappe.db.count('E Invoice User'):
|
||||
|
||||
if not company:
|
||||
return
|
||||
|
||||
frappe.reload_doc("regional", "doctype", "e_invoice_user")
|
||||
if not frappe.db.count('E Invoice User'):
|
||||
return
|
||||
|
||||
for creds in frappe.db.get_all('E Invoice User', fields=['name', 'gstin']):
|
||||
company_name = frappe.db.sql("""
|
||||
select dl.link_name from `tabAddress` a, `tabDynamic Link` dl
|
||||
|
||||
Reference in New Issue
Block a user