patch to add payment_terms_field

This commit is contained in:
tunde 2017-09-04 13:34:31 +01:00
parent 975eff7310
commit feffca2b05

View File

@ -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")