Update purchase_receipt.py

This commit is contained in:
Nabin Hait 2016-10-29 14:49:33 +05:30 committed by GitHub
parent 71e3746a05
commit eb1a55bbba

View File

@ -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"))