refined document sequence management
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user