mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
chore: update fg_item_qty based on qty in PO Item
This commit is contained in:
@@ -112,6 +112,16 @@ frappe.ui.form.on("Purchase Order Item", {
|
|||||||
set_schedule_date(frm);
|
set_schedule_date(frm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
qty: function(frm, cdt, cdn) {
|
||||||
|
if (frm.doc.is_subcontracted && !frm.doc.is_old_subcontracting_flow) {
|
||||||
|
var row = locals[cdt][cdn];
|
||||||
|
|
||||||
|
if (row.qty) {
|
||||||
|
row.fg_item_qty = row.qty;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user