Commit 13891319 by Alexis Aoun

refactor: cleaned useless code

parent 96967cb5
...@@ -64,7 +64,6 @@ function searchUpdatedProduct() { ...@@ -64,7 +64,6 @@ function searchUpdatedProduct() {
function select_product_from_bc(barcode) { function select_product_from_bc(barcode) {
try { try {
console.log("FLAG 1 !");
if (editing_product == null) { if (editing_product == null) {
let p = barcodes.get_corresponding_odoo_product(barcode); let p = barcodes.get_corresponding_odoo_product(barcode);
...@@ -100,9 +99,6 @@ function select_product_from_bc(barcode) { ...@@ -100,9 +99,6 @@ function select_product_from_bc(barcode) {
let row = table_to_process.row($('#'+found.data.product_id[0])); let row = table_to_process.row($('#'+found.data.product_id[0]));
remove_from_toProcess(row, found.data); remove_from_toProcess(row, found.data);
} else {
let row = table_processed.row($('#'+found.data.product_id[0]));
console.log("FLAG 2 !");
} }
} }
} }
......
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