fix: improve Google Sheets column mapping for the resumo field to prevent false positives
This commit is contained in:
@@ -365,7 +365,11 @@ class GoogleSheetsSyncService(private val context: Context) {
|
||||
|
||||
// 8. Resumo: column mapping to filter service orders (only Resumo = Não)
|
||||
val resumoIdx = headers.indexOfFirst {
|
||||
it.contains("resumo")
|
||||
it == "resumo"
|
||||
}.let { idx ->
|
||||
if (idx != -1) idx else headers.indexOfFirst {
|
||||
it.contains("resumo") && !it.contains("nome") && !it.contains("tarefa")
|
||||
}
|
||||
}
|
||||
|
||||
Log.d(tag, "Mapped Column Indices: taskName=$taskNameIdx, group=$groupIdx, resource=$resourceIdx, inicio=$inicioIdx, fim=$fimIdx, outline=$outlineIdx, id=$idIdx, resumo=$resumoIdx")
|
||||
|
||||
Reference in New Issue
Block a user