]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-417
authormarina <m.zozirova@gmail.com>
Tue, 3 Jun 2025 07:07:12 +0000 (10:07 +0300)
committermarina <m.zozirova@gmail.com>
Tue, 3 Jun 2025 07:07:12 +0000 (10:07 +0300)
erp24/web/js/validate/validateForm.js

index 21e0110d464e9cf74e939e8c1ddfa97faafd9823..163ede0cc6b8c1151d5aaa44ae6c1972035d5398 100755 (executable)
@@ -39,6 +39,11 @@ $(".form-validate button").click(function (e) {
                 }
             });
 
+            const group = $('.group-name').text().trim();
+            const currentUser = $('.admin-name').text().trim();
+            const selectedStoreId = $('#writeoffserp-store_id').val();
+            const commentValue = $('#writeoffserp-comment').val().trim();
+
             const specialStoreIds = ['1', '9', '28'];
             const allowedCommentUsers = ['Емельянова Ольга', 'Яшенкова Алена', 'Цветкова Ольга'];
 
@@ -54,7 +59,7 @@ $(".form-validate button").click(function (e) {
                     ];
                 }
             }
-
+            
             if (Object.keys(errors).length > 0) {
                 renderErrors(errors);
                 let allErrors = [];