fix: Make sure row object has doctype so that read only property is applied to rows

This commit is contained in:
marination 2020-11-04 21:00:52 +05:30
parent 413b1c3b43
commit e3864c9b16

View File

@ -669,6 +669,7 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend(
let pending_qty = (flt(d.stock_qty) - flt(d.ordered_qty)) / flt(d.conversion_factor);
if (pending_qty > 0) {
po_items.push({
"doctype": "Sales Order Item",
"name": d.name,
"item_name": d.item_name,
"item_code": d.item_code,