From eff290791109826e1ef3444525d1d2d05bc35c55 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 12 Sep 2012 14:42:25 +0530 Subject: [PATCH] error fixed in period closing entry --- .../doctype/period_closing_voucher/period_closing_voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py b/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py index 12601d2529..454c767408 100644 --- a/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py +++ b/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py @@ -68,7 +68,7 @@ class DocType: self.year_end_date = yr and yr[0][1] or '' # Posting Date should be within closing year - if getdate(self.doc.posting_date) < self.year_start_date or getdate(self.doc.posting_date) > self.year_end_date: + if getdate(self.doc.posting_date) < getdate(self.year_start_date) or getdate(self.doc.posting_date) > getdate(self.year_end_date): msgprint("Posting Date should be within Closing Fiscal Year") raise Exception