Merge branch 'develop' into FIX-ITEM-ALTERNATIVE-ERR-MSG

This commit is contained in:
Sagar Sharma 2023-03-09 10:07:24 +05:30 committed by GitHub
commit 87b5734f5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -506,7 +506,7 @@ frappe.ui.form.on("Work Order Item", {
callback: function(r) {
if (r.message) {
frappe.model.set_value(cdt, cdn, {
"required_qty": 1,
"required_qty": row.required_qty || 1,
"item_name": r.message.item_name,
"description": r.message.description,
"source_warehouse": r.message.default_warehouse,