mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-14 02:31:21 +00:00
patch to add payment_terms_field
This commit is contained in:
@@ -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")
|
||||||
Reference in New Issue
Block a user