refined document sequence management

This commit is contained in:
2026-05-16 09:04:18 +02:00
parent b5ccb0428d
commit a166992b04
6 changed files with 170 additions and 78 deletions

View File

@@ -49,19 +49,4 @@ class TicketsShipmentRepository {
throw ('Errore durante la creazione della spedizione: $e');
}
}
Future<String> getNextAutoDocumentNumber() async {
try {
final response = await _supabase
.from('document_sequences')
.select('*')
.eq('company_id', _companyId)
.eq('document_type', DocumentType.shipment.name)
.single();
return DocumentSequence.fromMap(response);
} catch (e) {
throw ('Errore recupero numero documento: $e');
}
}
}