isDescritivoCoerenteComTipo static method
Valida se o descritivo está coerente com o tipo de regime
Implementation
static bool isDescritivoCoerenteComTipo(int tipoRegime, String descritivo) {
if (tipoRegime == 0) {
return descritivo.toUpperCase() == 'COMPETENCIA';
} else if (tipoRegime == 1) {
return descritivo.toUpperCase() == 'CAIXA';
}
return false;
}