Detect all chip virgens headers

This commit is contained in:
Eduardo Lopes 2026-01-28 09:49:45 -03:00
parent cd1066f203
commit f0ec95363d
1 changed files with 5 additions and 6 deletions

View File

@ -1602,18 +1602,17 @@ namespace line_gestao_api.Controllers
{
var hasItem = false;
var hasNumeroChip = false;
var hasObservacoes = false;
foreach (var cell in row.CellsUsed())
{
var k = NormalizeHeader(cell.GetString());
if (k == "ITEM") hasItem = true;
if (k == "NODOCHIP" || k == "NUMERODOCHIP" || k == "NDOCHIP" || k == "NUMDOCHIP")
{
hasNumeroChip = true;
}
if (k.Contains("ITEM")) hasItem = true;
if (k.Contains("CHIP")) hasNumeroChip = true;
if (k.Contains("OBSERV")) hasObservacoes = true;
}
return hasItem && hasNumeroChip;
return hasItem && hasNumeroChip && hasObservacoes;
}
// ==========================================================