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