view shits of ordes by date

This commit is contained in:
José Salazar
2026-01-23 20:43:18 -05:00
parent 5c159493dd
commit afba0e64df
20 changed files with 20246 additions and 18735 deletions

View File

@@ -107,7 +107,7 @@ class ClientCreateOrderRepositoryImpl
end.isBefore(start) ? end.add(const Duration(days: 1)) : end;
final hours = normalizedEnd.difference(start).inMinutes / 60.0;
final rate = order.roleRates[position.role] ?? 0;
final totalValue = rate * hours;
final totalValue = rate * hours * position.count;
await _dataConnect
.createShiftRole(
@@ -143,7 +143,7 @@ class ClientCreateOrderRepositoryImpl
end.isBefore(start) ? end.add(const Duration(days: 1)) : end;
final hours = normalizedEnd.difference(start).inMinutes / 60.0;
final rate = order.roleRates[position.role] ?? 0;
total += rate * hours;
total += rate * hours * position.count;
}
return total;
}