From: marina Date: Tue, 3 Jun 2025 07:08:04 +0000 (+0300) Subject: ERP-417 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=afa9840cd8d102adb7b2d2ad162b64737f3a90d9;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 163ede0c..accf7176 100755 --- a/erp24/web/js/validate/validateForm.js +++ b/erp24/web/js/validate/validateForm.js @@ -39,7 +39,6 @@ $(".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(); @@ -47,7 +46,7 @@ $(".form-validate button").click(function (e) { const specialStoreIds = ['1', '9', '28']; const allowedCommentUsers = ['Емельянова Ольга', 'Яшенкова Алена', 'Цветкова Ольга']; - if (group === 'IT' && specialStoreIds.includes(selectedStoreId)) { + if (specialStoreIds.includes(selectedStoreId)) { if (!allRowsHaveImage) { if (!errors['__common']) errors['__common'] = []; errors['__common'].push('Пожалуйста, добавьте хотя бы одно фото к каждому списанию перед сохранением.'); @@ -59,7 +58,7 @@ $(".form-validate button").click(function (e) { ]; } } - + if (Object.keys(errors).length > 0) { renderErrors(errors); let allErrors = [];