Commit eb3c39c8 by Damien Moulard

add comments

parent 5a7df93d
Pipeline #2311 passed with stage
in 1 minute 23 seconds
......@@ -2043,11 +2043,13 @@ function create_orders() {
let item_qty_package = 0;
// If package qty is > than input value, package qty will be used while creating order
let package_qty = p_supplierinfo.package_qty;
if (product_qty < package_qty) {
package_qty = product_qty;
}
// Round differently for unit & kg products
if (product_uom.includes("kg") ) {
item_qty_package = Math.round((product_qty / package_qty) * 1e2) / 1e2;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment