2015-07-09 17:49:50 +05:30
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
for dt in ("Customer", "Customer Group", "Company"):
|
2015-07-13 15:06:12 +05:30
|
|
|
frappe.reload_doctype(dt, force=True)
|
2015-07-09 17:49:50 +05:30
|
|
|
frappe.db.sql("""update `tab{0}` set credit_days_based_on='Fixed Days'
|
2015-07-13 15:06:12 +05:30
|
|
|
where ifnull(credit_days, 0) > 0""".format(dt))
|