From 2026148dbe6d5e8e2c9701b7db0d1041be662307 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Tue, 19 Aug 2014 12:22:45 +0530 Subject: [PATCH] [fix issue No #1510] --- erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py index 2c762f3a23..fdd669bc7c 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py @@ -88,7 +88,7 @@ class PurchaseInvoice(BuyingController): if (self.currency == default_currency and flt(self.conversion_rate) != 1.00) or not self.conversion_rate or (self.currency != default_currency and flt(self.conversion_rate) == 1.00): throw(_("Conversion rate cannot be 0 or 1")) - def validate_bill_no(self): +''' def validate_bill_no(self): if self.bill_no: b_no = frappe.db.sql("""select bill_no, name, ifnull(is_opening,'') from `tabPurchase Invoice` where bill_no = %s and credit_to = %s and docstatus = 1 and name != %s""", @@ -103,7 +103,7 @@ class PurchaseInvoice(BuyingController): if not self.remarks: self.remarks = "No Remarks" - +''' def validate_credit_acc(self): if frappe.db.get_value("Account", self.credit_to, "report_type") != "Balance Sheet": frappe.throw(_("Account must be a balance sheet account"))