fix: set schedule date from MR to PO
This commit is contained in:
parent
bfb09d51a3
commit
ecf25907a5
@ -233,7 +233,7 @@ def update_completed_and_requested_qty(stock_entry, method):
|
||||
mr_obj.update_requested_qty(mr_item_rows)
|
||||
|
||||
def set_missing_values(source, target_doc):
|
||||
if getdate(target_doc.schedule_date) < getdate(nowdate()):
|
||||
if target_doc.doctype == "Purchase Order" and getdate(target_doc.schedule_date) < getdate(nowdate()):
|
||||
target_doc.schedule_date = None
|
||||
target_doc.run_method("set_missing_values")
|
||||
target_doc.run_method("calculate_taxes_and_totals")
|
||||
|
Loading…
x
Reference in New Issue
Block a user