mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 17:26:43 +00:00
Patch for c-form
This commit is contained in:
11
erpnext/patches/c_form_patch.py
Normal file
11
erpnext/patches/c_form_patch.py
Normal file
@@ -0,0 +1,11 @@
|
||||
def execute():
|
||||
import webnotes
|
||||
from webnotes.modules.module_manager import reload_doc
|
||||
|
||||
reload_doc('accounts', 'doctype', 'receivable_voucher')
|
||||
reload_doc('accounts', 'doctype', 'c_form')
|
||||
reload_doc('accounts', 'doctype', 'c_form_invoice_details')
|
||||
|
||||
sql = webnotes.conn.sql
|
||||
sql("update `tabReceivable Voucher` set c_form_applicable = 'Yes' where c_form_applicable = 'Y'")
|
||||
sql("update `tabReceivable Voucher` set c_form_applicable = 'No' where c_form_applicable = 'N'")
|
||||
Reference in New Issue
Block a user