fix: Stationsabschluss absichern und Kundenformulare anpassen
Sperrt nachträgliche Aufgabenabschlüsse in App und Backend und zeigt erledigte Aufträge trotz offener optionaler Aufgaben grün an. Ergänzt Regressionstests, die Anredeauswahl und optionale Steuerangaben für Kunden. Enthält App-Version 0.9.25, Backend-Version 0.9.26 und das aktualisierte Frontend-Bundle.
This commit is contained in:
1 parent
8758c53e5b
commit
5e6044e4b1
16 files changed
+638
-69
No files matched your search
@@ -368,6 +368,23 @@ class DatabaseService {
|
||||
}
|
||||
}
|
||||
|
||||
/// Merge server confirmations and locally persisted offline confirmations.
|
||||
Future<Set<int>> loadCompletedStationOrders(Job job) async {
|
||||
final orders =
|
||||
job.deliveryStations.isEmpty
|
||||
? {0}
|
||||
: job.deliveryStations
|
||||
.map((station) => station.stationOrder)
|
||||
.toSet();
|
||||
final completed = <int>{...job.completedStationOrders};
|
||||
for (final order in orders) {
|
||||
if (await loadKeyValue('station_completed:${job.id}:$order') == '1') {
|
||||
completed.add(order);
|
||||
}
|
||||
}
|
||||
return completed;
|
||||
}
|
||||
|
||||
/// Load all task completion statuses
|
||||
Future<Map<String, bool>> loadAllTaskStatuses() async {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user