mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
[minor][buying] fix schedule date check
This commit is contained in:
@@ -430,7 +430,8 @@ class BuyingController(StockController):
|
|||||||
if not d.schedule_date:
|
if not d.schedule_date:
|
||||||
d.schedule_date = self.schedule_date
|
d.schedule_date = self.schedule_date
|
||||||
|
|
||||||
if d.schedule_date and getdate(d.schedule_date) < getdate(self.transaction_date):
|
if (d.schedule_date and self.transaction_date and
|
||||||
|
getdate(d.schedule_date) < getdate(self.transaction_date)):
|
||||||
frappe.throw(_("Row #{0}: Reqd by Date cannot be before Transaction Date").format(d.idx))
|
frappe.throw(_("Row #{0}: Reqd by Date cannot be before Transaction Date").format(d.idx))
|
||||||
else:
|
else:
|
||||||
frappe.throw(_("Please enter Reqd by Date"))
|
frappe.throw(_("Please enter Reqd by Date"))
|
||||||
|
|||||||
Reference in New Issue
Block a user