function isSentToFns(row) {
if (!row) {
return false;
}
const value = row.is_sent_to_fns_p;
const normalizedValue = String(value).trim().toLowerCase();
if (
value === true
|| value === 1
|| normalizedValue === 'true'
|| normalizedValue === 't'
|| normalizedValue === '1'
|| normalizedValue === 'yes'
|| normalizedValue === 'да'
) {
return true;
}
// Резервная проверка по HTML-иконке в видимой колонке
const statusHtml = String(row.is_sent_to_fns || '')
.toLowerCase()
.replace(/\s/g, '');
return statusHtml.includes('color:green');
}