}
});
- 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 = ['Емельянова Ольга', 'Яшенкова Алена', 'Цветкова Ольга'];
- if (group === 'IT' && specialStoreIds.includes(selectedStoreId)) {
+ if (specialStoreIds.includes(selectedStoreId)) {
if (!allRowsHaveImage) {
if (!errors['__common']) errors['__common'] = [];
errors['__common'].push('Пожалуйста, добавьте хотя бы одно фото к каждому списанию перед сохранением.');
];
}
}
-
+
if (Object.keys(errors).length > 0) {
renderErrors(errors);
let allErrors = [];