patch for payment term field in Supplier Type

This commit is contained in:
tunde 2017-09-04 19:32:14 +01:00
parent 4163c9529d
commit 95b3d7c619

View File

@ -0,0 +1,7 @@
from __future__ import unicode_literals
import frappe
def execute():
if not frappe.db.has_column("Supplier Type", "payment_terms"):
frappe.db.sql("ALTER TABLE `tabSupplier Type` ADD COLUMN `payment_terms` VARCHAR(140) NULL")