commit | dec9f2558ef419f1206224bb341f35ed615cfc79 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Sat Oct 29 14:49:33 2016 +0530 |
committer | Neil Trini Lasrado <neil@frappe.io> | Tue Nov 01 17:24:46 2016 +0530 |
tree | d27ae3ad7b1ee1506663a2da8a60688590d2a67b | |
parent | 6da2b08ceabeff03d829436087c8bdc573a86b62 [diff] |
Update purchase_receipt.py
diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py index 3811059..86fb88b 100644 --- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py +++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py
@@ -59,7 +59,7 @@ 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"))