mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
Update purchase_receipt.py
This commit is contained in:
@@ -59,7 +59,7 @@ class PurchaseReceipt(BuyingController):
|
|||||||
pc_obj = frappe.get_doc('Purchase Common')
|
pc_obj = frappe.get_doc('Purchase Common')
|
||||||
self.check_for_closed_status(pc_obj)
|
self.check_for_closed_status(pc_obj)
|
||||||
|
|
||||||
if self.posting_date > getdate(nowdate()):
|
if getdate(self.posting_date) > getdate(nowdate()):
|
||||||
throw(_("Posting Date cannot be future date"))
|
throw(_("Posting Date cannot be future date"))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user