Commit bf84f15c by Damien Moulard

INV: fix processed row counter

parent 0524dda9
Pipeline #2279 passed with stage
in 1 minute 26 seconds
...@@ -1112,6 +1112,16 @@ function init() { ...@@ -1112,6 +1112,16 @@ function init() {
list_to_process = products; list_to_process = products;
initLists(); initLists();
// Set processed_row_counter to current value
if ('list_processed' in shelf) {
for (let processed_item of shelf['list_processed']) {
if (processed_item.row_counter > processed_row_counter) {
processed_row_counter = processed_item.row_counter;
}
}
}
processed_row_counter++;
// Set DOM // Set DOM
if (originView == "shelf") { if (originView == "shelf") {
$('#shelf_name').text(shelf.name + ' (numéro ' + shelf.sort_order + ')'); $('#shelf_name').text(shelf.name + ' (numéro ' + shelf.sort_order + ')');
......
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