mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 02:33:38 +00:00
fix: setting process loss qty causes fg item qty to be incorrect
(cherry picked from commit 56f5df6847)
This commit is contained in:
@@ -885,12 +885,11 @@ frappe.ui.form.on("Stock Entry", {
|
||||
|
||||
frm.doc.items.forEach((item) => {
|
||||
if (item.is_finished_item) {
|
||||
fg_completed_qty += flt(item.transfer_qty);
|
||||
fg_completed_qty += flt(item.transfer_qty + frm.doc.process_loss_qty);
|
||||
}
|
||||
});
|
||||
|
||||
frm.doc.fg_completed_qty = fg_completed_qty;
|
||||
frm.refresh_field("fg_completed_qty");
|
||||
frm.set_value("fg_completed_qty", fg_completed_qty);
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user