From cd50c2513f04112aff680363885ac9f7b9938eef Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 12 Feb 2013 15:46:24 +0530 Subject: [PATCH] removed wrong validation --- accounts/doctype/purchase_invoice/purchase_invoice.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/accounts/doctype/purchase_invoice/purchase_invoice.py b/accounts/doctype/purchase_invoice/purchase_invoice.py index 8512b018312..db0ddd807d0 100644 --- a/accounts/doctype/purchase_invoice/purchase_invoice.py +++ b/accounts/doctype/purchase_invoice/purchase_invoice.py @@ -269,9 +269,6 @@ class DocType(BuyingController): if not cstr(data[0]['currency']) == cstr(self.doc.currency): msgprint("Purchase Receipt: " + cstr(d.purchase_receipt) + " currency : " + cstr(data[0]['currency']) + " does not match with currency of current document.") raise Exception - if not flt(data[0]['conversion_rate']) == flt(self.doc.conversion_rate): - msgprint("Purchase Receipt: " + cstr(d.purchase_receipt) + " conversion_rate : " + cstr(data[0]['conversion_rate']) + " does not match with conversion_rate of current document.") - raise Exception def set_aging_date(self): if self.doc.is_opening != 'Yes':