mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
refactor: polyfill ??
This commit is contained in:
@@ -693,7 +693,7 @@ function trigger_process_loss_qty_prompt(frm, cdt, cdn, item_code) {
|
|||||||
(data) => {
|
(data) => {
|
||||||
const row = locals[cdt][cdn];
|
const row = locals[cdt][cdn];
|
||||||
row.stock_qty = (frm.doc.quantity * data.percent) / 100;
|
row.stock_qty = (frm.doc.quantity * data.percent) / 100;
|
||||||
row.qty = row.stock_qty / (row.conversion_factor ?? 1);
|
row.qty = row.stock_qty / (row.conversion_factor || 1);
|
||||||
refresh_field("scrap_items");
|
refresh_field("scrap_items");
|
||||||
},
|
},
|
||||||
__("Set Process Loss Item Quantity"),
|
__("Set Process Loss Item Quantity"),
|
||||||
|
|||||||
Reference in New Issue
Block a user