refactor: polyfill ??
This commit is contained in:
parent
55acb2e843
commit
47a4a3d888
@ -686,7 +686,7 @@ function trigger_process_loss_qty_prompt(frm, cdt, cdn, item_code) {
|
||||
(data) => {
|
||||
const row = locals[cdt][cdn];
|
||||
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");
|
||||
},
|
||||
__("Set Process Loss Item Quantity"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user