patch to add payment_terms_field
This commit is contained in:
parent
975eff7310
commit
feffca2b05
@ -0,0 +1,9 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
if not frappe.db.has_column("Customer", "payment_terms"):
|
||||
frappe.db.sql("ALTER TABLE `tabCustomer` ADD COLUMN `payment_terms` DATE DEFAULT NULL")
|
||||
if not frappe.db.has_column("Supplier", "payment_terms"):
|
||||
frappe.db.sql("ALTER TABLE `tabSupplier` ADD COLUMN `payment_terms` DATE DEFAULT NULL")
|
Loading…
x
Reference in New Issue
Block a user