mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 15:12:51 +00:00
[fix] [patch] recurring
This commit is contained in:
@@ -15,6 +15,7 @@ def test_recurring_document(obj, test_records):
|
|||||||
|
|
||||||
base_doc.update({
|
base_doc.update({
|
||||||
"is_recurring": 1,
|
"is_recurring": 1,
|
||||||
|
"submit_on_create": 1,
|
||||||
"recurring_type": "Monthly",
|
"recurring_type": "Monthly",
|
||||||
"notification_email_address": "test@example.com, test1@example.com, test2@example.com",
|
"notification_email_address": "test@example.com, test1@example.com, test2@example.com",
|
||||||
"repeat_on_day_of_month": getdate(today).day,
|
"repeat_on_day_of_month": getdate(today).day,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ def execute():
|
|||||||
for doctype in ('Sales Order', 'Purchase Order', 'Sales Invoice',
|
for doctype in ('Sales Order', 'Purchase Order', 'Sales Invoice',
|
||||||
'Purchase Invoice'):
|
'Purchase Invoice'):
|
||||||
frappe.reload_doctype(doctype)
|
frappe.reload_doctype(doctype)
|
||||||
frappe.db.sql('''update `tab{0}` set submit_on_creation=1
|
frappe.db.sql('''update `tab{0}` set submit_on_creation=1, notify_by_email=1
|
||||||
where is_recurring=1'''.format(doctype))
|
where is_recurring=1'''.format(doctype))
|
||||||
frappe.db.sql('''update `tab{0}` set notify_by_email=1
|
frappe.db.sql('''update `tab{0}` set notify_by_email=1
|
||||||
where is_recurring=1'''.format(doctype))
|
where is_recurring=1'''.format(doctype))
|
||||||
|
|||||||
Reference in New Issue
Block a user