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 40ba013636
commit 09e1b5314b

View File

@@ -657,6 +657,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,