mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
patch replace credit_days with payment terms schedule
This commit is contained in:
@@ -21,10 +21,11 @@ def execute():
|
|||||||
value_query_str = " ".join(payment_terms)
|
value_query_str = " ".join(payment_terms)
|
||||||
cond_query_str = " ELSE `payment_terms` END WHERE "
|
cond_query_str = " ELSE `payment_terms` END WHERE "
|
||||||
|
|
||||||
frappe.db.sql(
|
if customers:
|
||||||
begin_query_str + value_query_str + cond_query_str + '`customer_name` IN %s',
|
frappe.db.sql(
|
||||||
(customers,)
|
begin_query_str + value_query_str + cond_query_str + '`customer_name` IN %s',
|
||||||
)
|
(customers,)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def make_template(payment_term):
|
def make_template(payment_term):
|
||||||
|
|||||||
Reference in New Issue
Block a user