Feat: fix bug todays income
This commit is contained in:
parent
7c2aa51362
commit
2ce8042138
|
@ -10,11 +10,9 @@ class StatisticRepositoryImpl implements StatisticRepository {
|
|||
Timestamp _tsToDate(DateTime d) =>
|
||||
Timestamp.fromDate(DateTime(d.year, d.month, d.day).add(const Duration(days: 1)));
|
||||
|
||||
// Helper untuk menentukan tanggal awal bulan
|
||||
Timestamp _tsFirstDayOfMonth(DateTime month) =>
|
||||
Timestamp.fromDate(DateTime(month.year, month.month, 1));
|
||||
|
||||
// Helper untuk menentukan tanggal awal bulan berikutnya
|
||||
Timestamp _tsFirstDayOfNextMonth(DateTime month) =>
|
||||
Timestamp.fromDate(DateTime(month.year, month.month + 1, 1));
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ abstract class StatisticRepository {
|
|||
required String porterId,
|
||||
required DateTime date,
|
||||
});
|
||||
|
||||
|
||||
Stream<double> getMonthlyRevenue({
|
||||
required String porterId,
|
||||
required DateTime month,
|
||||
|
|
Loading…
Reference in New Issue