From: Alexander Smirnov Date: Thu, 5 Dec 2024 15:22:57 +0000 (+0300) Subject: [ERP-258] поправка номера строки в алерте X-Git-Tag: 1.7~189^2~5 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=4e02f54298b658deadc790caf5128888be30202c;p=erp24_rep%2Fyii-erp24%2F.git [ERP-258] поправка номера строки в алерте --- diff --git a/erp24/web/js/shift-transfer/update.js b/erp24/web/js/shift-transfer/update.js index 707fb10e..c1c4bea4 100644 --- a/erp24/web/js/shift-transfer/update.js +++ b/erp24/web/js/shift-transfer/update.js @@ -44,7 +44,7 @@ function checkInputRow(currentIndex, row, errorContainer) { const remains_count = $(row).find('#shifttransfer-shiftremainscopy-' + currentIndex + '-remains_count'); const fact_and_1c_diff = $(row).find('#shifttransfer-shiftremainscopy-' + currentIndex + '-fact_and_1c_diff'); function checkField(field, currentIndex, productName, msg, errorContainer) { - if (field.val() === '') { errorContainer.push(msg + ' Продукт: ' + productName + ' Строка: ' + currentIndex ); return false; } + if (field.val() === '') { errorContainer.push(msg + ' Продукт: ' + productName + ' Строка: ' + (currentIndex + 1) ); return false; } return true; }