fix(Subscription): pass start_date while computing next_schedu… (#20159)

This commit is contained in:
Rucha Mahabal 2019-12-31 19:15:37 +05:30 committed by Chinmay Pai
parent 8554304616
commit 2d293c585e

View File

@ -416,7 +416,7 @@ class SalesOrder(SellingController):
def _get_delivery_date(ref_doc_delivery_date, red_doc_transaction_date, transaction_date):
delivery_date = get_next_schedule_date(ref_doc_delivery_date,
auto_repeat_doc.frequency, cint(auto_repeat_doc.repeat_on_day))
auto_repeat_doc.frequency, auto_repeat_doc.start_date, cint(auto_repeat_doc.repeat_on_day))
if delivery_date <= transaction_date:
delivery_date_diff = frappe.utils.date_diff(ref_doc_delivery_date, red_doc_transaction_date)