From dec9f2558ef419f1206224bb341f35ed615cfc79 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Sat, 29 Oct 2016 14:49:33 +0530 Subject: [PATCH] Update purchase_receipt.py --- erpnext/stock/doctype/purchase_receipt/purchase_receipt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py index 38110590a3..86fb88b9c7 100644 --- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py +++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py @@ -59,7 +59,7 @@ class PurchaseReceipt(BuyingController): pc_obj = frappe.get_doc('Purchase Common') 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"))