fix: submitted sales order can be updated with no permission

This commit is contained in:
Saqib Ansari
2020-05-29 21:55:38 +05:30
committed by marination
parent 18ccd6b253
commit 37b614af0e
3 changed files with 57 additions and 12 deletions

View File

@@ -489,6 +489,12 @@ erpnext.utils.update_child_items = function(opts) {
in_list_view: 1,
label: frm.doc.doctype == 'Sales Order' ? __("Delivery Date") : __("Reqd by date")
})
fields.splice(3, 0, {
fieldtype: 'Float',
fieldname: "conversion_factor",
in_list_view: 1,
label: __("UOM Conversion Factor")
})
}
const dialog = new frappe.ui.Dialog({
@@ -536,6 +542,7 @@ erpnext.utils.update_child_items = function(opts) {
"item_code": d.item_code,
"delivery_date": d.delivery_date,
"schedule_date": d.schedule_date,
"conversion_factor": d.conversion_factor,
"qty": d.qty,
"rate": d.rate,
});