chore: update fg_item_qty based on qty in PO Item

This commit is contained in:
Sagar Sharma 2022-07-05 08:31:31 +05:30
parent caeaa3f940
commit 687329f571

View File

@ -112,6 +112,16 @@ frappe.ui.form.on("Purchase Order Item", {
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;
}
}
}
});