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

index fe4b6add1300583d925dad4a1fb590d8177d68eb..8dfa5d8609e9bb3d418fdbceb4c9a76fa06d3c6d 100755 (executable)
@@ -4,7 +4,7 @@ function updateCommentReadonly() {
     const currentUser = $('.admin-name').text().trim();
     const selectedStoreId = $('#writeoffserp-store_id').val();
     const specialStoreIds = ['1', '9', '28'];
-    const allowedCommentUsers = ['Емельянова Ольга', 'Яшенкова Алена', 'Цветкова Ольга'];
+    const allowedCommentUsers = ['Емельянова Ольга', 'Яшенкова Алёна', 'Ольга Цветкова'];
 
     const isReadonly = specialStoreIds.includes(selectedStoreId) && !allowedCommentUsers.includes(currentUser);
     $('#writeoffserp-comment').prop('readonly', isReadonly);
@@ -73,7 +73,7 @@ $(".form-validate button").click(function (e) {
                     if (!errors['__common']) errors['__common'] = [];
                     errors['__common'].push('Пожалуйста, добавьте хотя бы одно фото к каждому списанию перед сохранением.');
                 }
-console.log(currentUser, allowedCommentUsers.includes(currentUser))
+
                 if (!allowedCommentUsers.includes(currentUser) && commentValue !== initialCommentValue) {
                     if (!errors['__common']) errors['__common'] = [];
                     errors['__common'].push('Вы не можете редактировать комментарий для данного магазина.');