From c3d1d6a9460ca0d07d90b07208853529feacea84 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 4 Jun 2014 16:41:22 +0530 Subject: [PATCH] cleanup raw materials supplied table for sub-contraction. Fixes #1743 --- 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 ad56d8fe94..accaeb4498 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py @@ -267,7 +267,7 @@ class BuyingController(StockController): for d in self.get(raw_material_table): if [d.main_item_code, d.reference_name] not in parent_items: # mark for deletion from doclist - delete_list.append([d.main_item_code, d.reference_name]) + delete_list.append(d) # delete from doclist if delete_list: