From d77ac4898dad15c34e7c20eb62387193ce357be9 Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 3 Jun 2025 10:07:12 +0300 Subject: [PATCH] ERP-417 --- erp24/web/js/validate/validateForm.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/erp24/web/js/validate/validateForm.js b/erp24/web/js/validate/validateForm.js index 21e0110d..163ede0c 100755 --- a/erp24/web/js/validate/validateForm.js +++ b/erp24/web/js/validate/validateForm.js @@ -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 = []; -- 2.39.5