From 93ed5b9dae50f247b79983e8227ac7414133011b Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 23 May 2013 19:21:58 +0530 Subject: [PATCH] [sales invoice][fix] check item rate with sales order and delivery note --- accounts/doctype/sales_invoice/sales_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/doctype/sales_invoice/sales_invoice.py b/accounts/doctype/sales_invoice/sales_invoice.py index a7f024c2df..050a49055d 100644 --- a/accounts/doctype/sales_invoice/sales_invoice.py +++ b/accounts/doctype/sales_invoice/sales_invoice.py @@ -565,7 +565,7 @@ class DocType(SellingController): d.export_rate, d.item_code) def check_value(self, ref_dt, ref_dn, ref_item_dn, val, item_code): - ref_val = webnotes.conn.get_value(ref_dt + "Item", ref_item_dn, "export_rate") + ref_val = webnotes.conn.get_value(ref_dt + " Item", ref_item_dn, "export_rate") if flt(ref_val) != flt(val): msgprint(_("Rate is not matching with ") + ref_dt + ": " + ref_dn + _(" for item: ") + item_code, raise_exception=True)