[Fix] Not able to delete row in modal table (#13377)

This commit is contained in:
rohitwaghchaure 2018-03-27 11:26:43 +05:30 committed by Nabin Hait
parent 2e560cb25d
commit c9a1eb1081
3 changed files with 3 additions and 1 deletions

View File

@ -217,7 +217,7 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend(
me.frm.doc['supplied_items'].forEach((item, index) => {
if (item.rm_item_code && item.main_item_code) {
me.raw_material_data.push ({
'name':index,
'name':item.name,
'item_code': item.main_item_code,
'rm_item_code': item.rm_item_code,
'item_name': item.rm_item_code,

View File

@ -229,6 +229,7 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend(
{fieldtype:'Data', fieldname:'sales_order_item', reqd: 1,
label: __('Sales Order Item'), hidden:1}
],
data: r.message,
get_data: function() {
return r.message
}

View File

@ -360,6 +360,7 @@ class SalesOrder(SellingController):
where production_item=%s and sales_order=%s and sales_order_item = %s and docstatus<2''', (i.item_code, self.name, i.name))[0][0])
if pending_qty:
items.append(dict(
name= i.name,
item_code= i.item_code,
bom = bom,
warehouse = i.warehouse,