From 966edff222741a4aa7140888630f1b0e3567f372 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 9 May 2014 10:54:12 +0530 Subject: [PATCH] minor fix --- erpnext/controllers/buying_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index d2fc2bf94d..43276e5977 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py @@ -248,7 +248,7 @@ class BuyingController(StockController): rm.amount = required_qty * flt(bom_item.rate) rm.idx = rm_supplied_idx - if self.doc.doctype == "Purchase Receipt": + if self.doctype == "Purchase Receipt": rm.consumed_qty = required_qty rm.description = bom_item.description if item.batch_no and not rm.batch_no: