mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
8 lines
248 B
Python
8 lines
248 B
Python
from __future__ import unicode_literals
|
|
|
|
import frappe
|
|
|
|
def execute():
|
|
for dt in ("Customer", "Customer Group", "Company"):
|
|
frappe.db.sql("""update `tab{0}` set credit_days_based_on='Fixed Days'
|
|
where ifnull(credit_days, 0) > 0""".format(dt)) |