This commit is contained in:
@@ -5,6 +5,7 @@ class DashboardAnalytic with _$DashboardAnalytic {
|
||||
const factory DashboardAnalytic({
|
||||
required String organizationId,
|
||||
required String outletId,
|
||||
required String outletName,
|
||||
required String dateFrom,
|
||||
required String dateTo,
|
||||
required DashboardOverview overview,
|
||||
@@ -16,6 +17,7 @@ class DashboardAnalytic with _$DashboardAnalytic {
|
||||
factory DashboardAnalytic.empty() => DashboardAnalytic(
|
||||
organizationId: '',
|
||||
outletId: '',
|
||||
outletName: '',
|
||||
dateFrom: '',
|
||||
dateTo: '',
|
||||
overview: DashboardOverview.empty(),
|
||||
@@ -34,6 +36,9 @@ class DashboardOverview with _$DashboardOverview {
|
||||
required int totalCustomers,
|
||||
required int voidedOrders,
|
||||
required int refundedOrders,
|
||||
required int totalItemSold,
|
||||
required int totalLowStock,
|
||||
required int totalProductActive,
|
||||
}) = _DashboardOverview;
|
||||
|
||||
factory DashboardOverview.empty() => const DashboardOverview(
|
||||
@@ -43,6 +48,9 @@ class DashboardOverview with _$DashboardOverview {
|
||||
totalCustomers: 0,
|
||||
voidedOrders: 0,
|
||||
refundedOrders: 0,
|
||||
totalItemSold: 0,
|
||||
totalLowStock: 0,
|
||||
totalProductActive: 0,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user