commit | eb1a55bbba05b04052d152eca3b338fd2feff451 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Sat Oct 29 14:49:33 2016 +0530 |
committer | GitHub <noreply@github.com> | Sat Oct 29 14:49:33 2016 +0530 |
tree | d5b4e200647780a8c88566dbd82e157860bc0a5b | |
parent | 71e3746a05d87c1c39b46e499d5bb27b2a88cecf [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"))