fix: po status
diff --git a/erpnext/stock/doctype/material_request/material_request.py b/erpnext/stock/doctype/material_request/material_request.py
index 6e3519c..aeb5411 100644
--- a/erpnext/stock/doctype/material_request/material_request.py
+++ b/erpnext/stock/doctype/material_request/material_request.py
@@ -336,7 +336,8 @@
def postprocess(source, target_doc):
target_doc.supplier = source_name
- target_doc.schedule_date = add_days(nowdate(), 1)
+ if getdate(target_doc.schedule_date) < getdate(nowdate()):
+ target_doc.schedule_date = None
target_doc.set("items", [d for d in target_doc.get("items")
if d.get("item_code") in supplier_items and d.get("qty") > 0])