]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-258] поправка номера строки в алерте
authorAlexander Smirnov <fredeom@mail.ru>
Thu, 5 Dec 2024 15:22:57 +0000 (18:22 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Thu, 5 Dec 2024 15:22:57 +0000 (18:22 +0300)
erp24/web/js/shift-transfer/update.js

index 707fb10e56a4b1d5bed860386d46be8b87eb2dfc..c1c4bea4e85e0b07461533a5187a770ad7f478d7 100644 (file)
@@ -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;
     }