mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-27 05:45:19 +00:00
[fix] before_recurring, set due_date, ageing_date as None, fixed account due date validation
This commit is contained in:
@@ -36,6 +36,9 @@ def manage_recurring_documents(doctype, next_date=None, commit=True):
|
||||
% (doctype, date_field, '%s', '%s'), (next_date, recurring_id)):
|
||||
try:
|
||||
ref_wrapper = frappe.get_doc(doctype, ref_document)
|
||||
if hasattr(ref_wrapper, "before_recurring"):
|
||||
ref_wrapper.before_recurring()
|
||||
|
||||
new_document_wrapper = make_new_document(ref_wrapper, date_field, next_date)
|
||||
send_notification(new_document_wrapper)
|
||||
if commit:
|
||||
|
||||
Reference in New Issue
Block a user