hasParteAprovechable method
- String especieExpedienteId
Implementation
Future<bool> hasParteAprovechable(String especieExpedienteId) async {
final db = await database;
final result = await db.rawQuery(
'SELECT COUNT(*) as total FROM parte_aprovechable WHERE especie_expediente_id = ?',
[especieExpedienteId],
);
final count = Sqflite.firstIntValue(result) ?? 0;
return count > 0;
}