[Fix] Not able to delete row in modal table (#13377)
This commit is contained in:
parent
2e560cb25d
commit
c9a1eb1081
@ -217,7 +217,7 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend(
|
|||||||
me.frm.doc['supplied_items'].forEach((item, index) => {
|
me.frm.doc['supplied_items'].forEach((item, index) => {
|
||||||
if (item.rm_item_code && item.main_item_code) {
|
if (item.rm_item_code && item.main_item_code) {
|
||||||
me.raw_material_data.push ({
|
me.raw_material_data.push ({
|
||||||
'name':index,
|
'name':item.name,
|
||||||
'item_code': item.main_item_code,
|
'item_code': item.main_item_code,
|
||||||
'rm_item_code': item.rm_item_code,
|
'rm_item_code': item.rm_item_code,
|
||||||
'item_name': item.rm_item_code,
|
'item_name': item.rm_item_code,
|
||||||
|
|||||||
@ -229,6 +229,7 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend(
|
|||||||
{fieldtype:'Data', fieldname:'sales_order_item', reqd: 1,
|
{fieldtype:'Data', fieldname:'sales_order_item', reqd: 1,
|
||||||
label: __('Sales Order Item'), hidden:1}
|
label: __('Sales Order Item'), hidden:1}
|
||||||
],
|
],
|
||||||
|
data: r.message,
|
||||||
get_data: function() {
|
get_data: function() {
|
||||||
return r.message
|
return r.message
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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])
|
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:
|
if pending_qty:
|
||||||
items.append(dict(
|
items.append(dict(
|
||||||
|
name= i.name,
|
||||||
item_code= i.item_code,
|
item_code= i.item_code,
|
||||||
bom = bom,
|
bom = bom,
|
||||||
warehouse = i.warehouse,
|
warehouse = i.warehouse,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user