Commit a7a0adfb by Alexis Aoun

lint

parent 9c74eac6
......@@ -97,7 +97,7 @@ function select_product_from_bc(barcode) {
}
if (foundProduct.data !== null) {
if(foundProduct.data.product_uom[0] == 21){ //if qty is in weight
if (foundProduct.data.product_uom[0] == 21) { //if qty is in weight
if (scannedProduct.rule === 'weight') {
editing_product = foundProduct.data;
editProductInfo(foundProduct.data, scannedProduct.qty);
......@@ -177,8 +177,9 @@ function update_distant_orders() {
function price_to_weight_confirmed_callback (foundProduct, scannedProduct) {
return function price_to_weight_confirmed() {
let newQty = null;
if (priceToWeightIsCorrect) {
newQty = scannedProduct.qty;
newQty = scannedProduct.qty;
} else {
let tmp = Number((scannedProduct.value/document.getElementById("new_price_to_weight").value).toFixed(3));
......
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