This commit is contained in:
@@ -5,6 +5,7 @@ class ExclusiveSummary with _$ExclusiveSummary {
|
||||
const factory ExclusiveSummary({
|
||||
required String organizationId,
|
||||
required String outletId,
|
||||
required String outletName,
|
||||
required ExclusiveSummaryPeriod period,
|
||||
required ExclusiveSummarySummary summary,
|
||||
required ExclusiveSummaryReimburse reimburse,
|
||||
@@ -17,6 +18,7 @@ class ExclusiveSummary with _$ExclusiveSummary {
|
||||
factory ExclusiveSummary.empty() => ExclusiveSummary(
|
||||
organizationId: '',
|
||||
outletId: '',
|
||||
outletName: '',
|
||||
period: ExclusiveSummaryPeriod.empty(),
|
||||
summary: ExclusiveSummarySummary.empty(),
|
||||
reimburse: ExclusiveSummaryReimburse.empty(),
|
||||
@@ -79,12 +81,11 @@ class ExclusiveSummaryReimburse with _$ExclusiveSummaryReimburse {
|
||||
required int totalReimburse,
|
||||
}) = _ExclusiveSummaryReimburse;
|
||||
|
||||
factory ExclusiveSummaryReimburse.empty() =>
|
||||
const ExclusiveSummaryReimburse(
|
||||
totalCost: 0,
|
||||
excludedSalaryStaff: 0,
|
||||
totalReimburse: 0,
|
||||
);
|
||||
factory ExclusiveSummaryReimburse.empty() => const ExclusiveSummaryReimburse(
|
||||
totalCost: 0,
|
||||
excludedSalaryStaff: 0,
|
||||
totalReimburse: 0,
|
||||
);
|
||||
}
|
||||
|
||||
@freezed
|
||||
|
||||
Reference in New Issue
Block a user