From: marina Date: Tue, 3 Jun 2025 07:07:12 +0000 (+0300) Subject: ERP-417 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=d77ac4898dad15c34e7c20eb62387193ce357be9;p=erp24_rep%2Fyii-erp24%2F.git ERP-417 --- 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 = [];