feat: change total to amount
Build Android APK (split per ABI) / build-apk (push) Canceled after 0s
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s

This commit is contained in:
efrilm
2026-10-20 18:22:02 +07:00
parent 7c8b36b65d
commit 24f94fa747
11 changed files with 326 additions and 87 deletions
@@ -49,14 +49,14 @@ class OrderRepository implements IOrderRepository {
}
@override
Future<Either<OrderFailure, int>> getTotalCount({
Future<Either<OrderFailure, OrderTotal>> getTotal({
String? status,
String? outletId,
required DateTime dateFrom,
required DateTime dateTo,
}) async {
try {
final result = await _dataProvider.fetchTotalCount(
final result = await _dataProvider.fetchTotal(
status: status,
outletId: outletId,
dateFrom: dateFrom,
@@ -69,7 +69,7 @@ class OrderRepository implements IOrderRepository {
return right(result.data!);
} catch (e, s) {
log('getOrderTotalCountError', name: _logName, error: e, stackTrace: s);
log('getOrderTotalError', name: _logName, error: e, stackTrace: s);
return left(const OrderFailure.unexpectedError());
}
}