Update purchase_receipt.py

This commit is contained in:
Nabin Hait 2016-10-29 14:49:33 +05:30 committed by Neil Trini Lasrado
parent 6da2b08cea
commit dec9f2558e

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