feat: update parent category analytic
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s
This commit is contained in:
@@ -14538,6 +14538,13 @@ mixin _$ProfitSharingCategoryDto {
|
||||
String? get parentCategoryId => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'parent_category_name')
|
||||
String? get parentCategoryName => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'owner_fee_percent')
|
||||
num? get ownerFeePercent => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'sdl')
|
||||
num? get sdl => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'top_product')
|
||||
ProfitSharingTopProductDto? get topProduct =>
|
||||
throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'total_revenue')
|
||||
num? get totalRevenue => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'total_quantity')
|
||||
@@ -14575,6 +14582,9 @@ abstract class $ProfitSharingCategoryDtoCopyWith<$Res> {
|
||||
$Res call({
|
||||
@JsonKey(name: 'parent_category_id') String? parentCategoryId,
|
||||
@JsonKey(name: 'parent_category_name') String? parentCategoryName,
|
||||
@JsonKey(name: 'owner_fee_percent') num? ownerFeePercent,
|
||||
@JsonKey(name: 'sdl') num? sdl,
|
||||
@JsonKey(name: 'top_product') ProfitSharingTopProductDto? topProduct,
|
||||
@JsonKey(name: 'total_revenue') num? totalRevenue,
|
||||
@JsonKey(name: 'total_quantity') num? totalQuantity,
|
||||
@JsonKey(name: 'category_count') num? categoryCount,
|
||||
@@ -14584,6 +14594,8 @@ abstract class $ProfitSharingCategoryDtoCopyWith<$Res> {
|
||||
@JsonKey(name: 'total_fifo_hpp') num? totalFifoHpp,
|
||||
@JsonKey(name: 'total_moving_average_hpp') num? totalMovingAverageHpp,
|
||||
});
|
||||
|
||||
$ProfitSharingTopProductDtoCopyWith<$Res>? get topProduct;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -14606,6 +14618,9 @@ class _$ProfitSharingCategoryDtoCopyWithImpl<
|
||||
$Res call({
|
||||
Object? parentCategoryId = freezed,
|
||||
Object? parentCategoryName = freezed,
|
||||
Object? ownerFeePercent = freezed,
|
||||
Object? sdl = freezed,
|
||||
Object? topProduct = freezed,
|
||||
Object? totalRevenue = freezed,
|
||||
Object? totalQuantity = freezed,
|
||||
Object? categoryCount = freezed,
|
||||
@@ -14625,6 +14640,18 @@ class _$ProfitSharingCategoryDtoCopyWithImpl<
|
||||
? _value.parentCategoryName
|
||||
: parentCategoryName // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
ownerFeePercent: freezed == ownerFeePercent
|
||||
? _value.ownerFeePercent
|
||||
: ownerFeePercent // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
sdl: freezed == sdl
|
||||
? _value.sdl
|
||||
: sdl // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
topProduct: freezed == topProduct
|
||||
? _value.topProduct
|
||||
: topProduct // ignore: cast_nullable_to_non_nullable
|
||||
as ProfitSharingTopProductDto?,
|
||||
totalRevenue: freezed == totalRevenue
|
||||
? _value.totalRevenue
|
||||
: totalRevenue // ignore: cast_nullable_to_non_nullable
|
||||
@@ -14661,6 +14688,22 @@ class _$ProfitSharingCategoryDtoCopyWithImpl<
|
||||
as $Val,
|
||||
);
|
||||
}
|
||||
|
||||
/// Create a copy of ProfitSharingCategoryDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$ProfitSharingTopProductDtoCopyWith<$Res>? get topProduct {
|
||||
if (_value.topProduct == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $ProfitSharingTopProductDtoCopyWith<$Res>(_value.topProduct!, (
|
||||
value,
|
||||
) {
|
||||
return _then(_value.copyWith(topProduct: value) as $Val);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -14675,6 +14718,9 @@ abstract class _$$ProfitSharingCategoryDtoImplCopyWith<$Res>
|
||||
$Res call({
|
||||
@JsonKey(name: 'parent_category_id') String? parentCategoryId,
|
||||
@JsonKey(name: 'parent_category_name') String? parentCategoryName,
|
||||
@JsonKey(name: 'owner_fee_percent') num? ownerFeePercent,
|
||||
@JsonKey(name: 'sdl') num? sdl,
|
||||
@JsonKey(name: 'top_product') ProfitSharingTopProductDto? topProduct,
|
||||
@JsonKey(name: 'total_revenue') num? totalRevenue,
|
||||
@JsonKey(name: 'total_quantity') num? totalQuantity,
|
||||
@JsonKey(name: 'category_count') num? categoryCount,
|
||||
@@ -14684,6 +14730,9 @@ abstract class _$$ProfitSharingCategoryDtoImplCopyWith<$Res>
|
||||
@JsonKey(name: 'total_fifo_hpp') num? totalFifoHpp,
|
||||
@JsonKey(name: 'total_moving_average_hpp') num? totalMovingAverageHpp,
|
||||
});
|
||||
|
||||
@override
|
||||
$ProfitSharingTopProductDtoCopyWith<$Res>? get topProduct;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -14706,6 +14755,9 @@ class __$$ProfitSharingCategoryDtoImplCopyWithImpl<$Res>
|
||||
$Res call({
|
||||
Object? parentCategoryId = freezed,
|
||||
Object? parentCategoryName = freezed,
|
||||
Object? ownerFeePercent = freezed,
|
||||
Object? sdl = freezed,
|
||||
Object? topProduct = freezed,
|
||||
Object? totalRevenue = freezed,
|
||||
Object? totalQuantity = freezed,
|
||||
Object? categoryCount = freezed,
|
||||
@@ -14725,6 +14777,18 @@ class __$$ProfitSharingCategoryDtoImplCopyWithImpl<$Res>
|
||||
? _value.parentCategoryName
|
||||
: parentCategoryName // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
ownerFeePercent: freezed == ownerFeePercent
|
||||
? _value.ownerFeePercent
|
||||
: ownerFeePercent // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
sdl: freezed == sdl
|
||||
? _value.sdl
|
||||
: sdl // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
topProduct: freezed == topProduct
|
||||
? _value.topProduct
|
||||
: topProduct // ignore: cast_nullable_to_non_nullable
|
||||
as ProfitSharingTopProductDto?,
|
||||
totalRevenue: freezed == totalRevenue
|
||||
? _value.totalRevenue
|
||||
: totalRevenue // ignore: cast_nullable_to_non_nullable
|
||||
@@ -14768,6 +14832,9 @@ class _$ProfitSharingCategoryDtoImpl extends _ProfitSharingCategoryDto {
|
||||
const _$ProfitSharingCategoryDtoImpl({
|
||||
@JsonKey(name: 'parent_category_id') this.parentCategoryId,
|
||||
@JsonKey(name: 'parent_category_name') this.parentCategoryName,
|
||||
@JsonKey(name: 'owner_fee_percent') this.ownerFeePercent,
|
||||
@JsonKey(name: 'sdl') this.sdl,
|
||||
@JsonKey(name: 'top_product') this.topProduct,
|
||||
@JsonKey(name: 'total_revenue') this.totalRevenue,
|
||||
@JsonKey(name: 'total_quantity') this.totalQuantity,
|
||||
@JsonKey(name: 'category_count') this.categoryCount,
|
||||
@@ -14788,6 +14855,15 @@ class _$ProfitSharingCategoryDtoImpl extends _ProfitSharingCategoryDto {
|
||||
@JsonKey(name: 'parent_category_name')
|
||||
final String? parentCategoryName;
|
||||
@override
|
||||
@JsonKey(name: 'owner_fee_percent')
|
||||
final num? ownerFeePercent;
|
||||
@override
|
||||
@JsonKey(name: 'sdl')
|
||||
final num? sdl;
|
||||
@override
|
||||
@JsonKey(name: 'top_product')
|
||||
final ProfitSharingTopProductDto? topProduct;
|
||||
@override
|
||||
@JsonKey(name: 'total_revenue')
|
||||
final num? totalRevenue;
|
||||
@override
|
||||
@@ -14814,7 +14890,7 @@ class _$ProfitSharingCategoryDtoImpl extends _ProfitSharingCategoryDto {
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ProfitSharingCategoryDto(parentCategoryId: $parentCategoryId, parentCategoryName: $parentCategoryName, totalRevenue: $totalRevenue, totalQuantity: $totalQuantity, categoryCount: $categoryCount, productCount: $productCount, orderCount: $orderCount, totalStandardHpp: $totalStandardHpp, totalFifoHpp: $totalFifoHpp, totalMovingAverageHpp: $totalMovingAverageHpp)';
|
||||
return 'ProfitSharingCategoryDto(parentCategoryId: $parentCategoryId, parentCategoryName: $parentCategoryName, ownerFeePercent: $ownerFeePercent, sdl: $sdl, topProduct: $topProduct, totalRevenue: $totalRevenue, totalQuantity: $totalQuantity, categoryCount: $categoryCount, productCount: $productCount, orderCount: $orderCount, totalStandardHpp: $totalStandardHpp, totalFifoHpp: $totalFifoHpp, totalMovingAverageHpp: $totalMovingAverageHpp)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -14826,6 +14902,11 @@ class _$ProfitSharingCategoryDtoImpl extends _ProfitSharingCategoryDto {
|
||||
other.parentCategoryId == parentCategoryId) &&
|
||||
(identical(other.parentCategoryName, parentCategoryName) ||
|
||||
other.parentCategoryName == parentCategoryName) &&
|
||||
(identical(other.ownerFeePercent, ownerFeePercent) ||
|
||||
other.ownerFeePercent == ownerFeePercent) &&
|
||||
(identical(other.sdl, sdl) || other.sdl == sdl) &&
|
||||
(identical(other.topProduct, topProduct) ||
|
||||
other.topProduct == topProduct) &&
|
||||
(identical(other.totalRevenue, totalRevenue) ||
|
||||
other.totalRevenue == totalRevenue) &&
|
||||
(identical(other.totalQuantity, totalQuantity) ||
|
||||
@@ -14850,6 +14931,9 @@ class _$ProfitSharingCategoryDtoImpl extends _ProfitSharingCategoryDto {
|
||||
runtimeType,
|
||||
parentCategoryId,
|
||||
parentCategoryName,
|
||||
ownerFeePercent,
|
||||
sdl,
|
||||
topProduct,
|
||||
totalRevenue,
|
||||
totalQuantity,
|
||||
categoryCount,
|
||||
@@ -14881,6 +14965,9 @@ abstract class _ProfitSharingCategoryDto extends ProfitSharingCategoryDto {
|
||||
const factory _ProfitSharingCategoryDto({
|
||||
@JsonKey(name: 'parent_category_id') final String? parentCategoryId,
|
||||
@JsonKey(name: 'parent_category_name') final String? parentCategoryName,
|
||||
@JsonKey(name: 'owner_fee_percent') final num? ownerFeePercent,
|
||||
@JsonKey(name: 'sdl') final num? sdl,
|
||||
@JsonKey(name: 'top_product') final ProfitSharingTopProductDto? topProduct,
|
||||
@JsonKey(name: 'total_revenue') final num? totalRevenue,
|
||||
@JsonKey(name: 'total_quantity') final num? totalQuantity,
|
||||
@JsonKey(name: 'category_count') final num? categoryCount,
|
||||
@@ -14902,6 +14989,15 @@ abstract class _ProfitSharingCategoryDto extends ProfitSharingCategoryDto {
|
||||
@JsonKey(name: 'parent_category_name')
|
||||
String? get parentCategoryName;
|
||||
@override
|
||||
@JsonKey(name: 'owner_fee_percent')
|
||||
num? get ownerFeePercent;
|
||||
@override
|
||||
@JsonKey(name: 'sdl')
|
||||
num? get sdl;
|
||||
@override
|
||||
@JsonKey(name: 'top_product')
|
||||
ProfitSharingTopProductDto? get topProduct;
|
||||
@override
|
||||
@JsonKey(name: 'total_revenue')
|
||||
num? get totalRevenue;
|
||||
@override
|
||||
@@ -14934,6 +15030,263 @@ abstract class _ProfitSharingCategoryDto extends ProfitSharingCategoryDto {
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
ProfitSharingTopProductDto _$ProfitSharingTopProductDtoFromJson(
|
||||
Map<String, dynamic> json,
|
||||
) {
|
||||
return _ProfitSharingTopProductDto.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$ProfitSharingTopProductDto {
|
||||
@JsonKey(name: 'product_id')
|
||||
String? get productId => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'product_name')
|
||||
String? get productName => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'quantity_sold')
|
||||
num? get quantitySold => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'revenue')
|
||||
num? get revenue => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this ProfitSharingTopProductDto to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
|
||||
/// Create a copy of ProfitSharingTopProductDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$ProfitSharingTopProductDtoCopyWith<ProfitSharingTopProductDto>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $ProfitSharingTopProductDtoCopyWith<$Res> {
|
||||
factory $ProfitSharingTopProductDtoCopyWith(
|
||||
ProfitSharingTopProductDto value,
|
||||
$Res Function(ProfitSharingTopProductDto) then,
|
||||
) =
|
||||
_$ProfitSharingTopProductDtoCopyWithImpl<
|
||||
$Res,
|
||||
ProfitSharingTopProductDto
|
||||
>;
|
||||
@useResult
|
||||
$Res call({
|
||||
@JsonKey(name: 'product_id') String? productId,
|
||||
@JsonKey(name: 'product_name') String? productName,
|
||||
@JsonKey(name: 'quantity_sold') num? quantitySold,
|
||||
@JsonKey(name: 'revenue') num? revenue,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$ProfitSharingTopProductDtoCopyWithImpl<
|
||||
$Res,
|
||||
$Val extends ProfitSharingTopProductDto
|
||||
>
|
||||
implements $ProfitSharingTopProductDtoCopyWith<$Res> {
|
||||
_$ProfitSharingTopProductDtoCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of ProfitSharingTopProductDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? productId = freezed,
|
||||
Object? productName = freezed,
|
||||
Object? quantitySold = freezed,
|
||||
Object? revenue = freezed,
|
||||
}) {
|
||||
return _then(
|
||||
_value.copyWith(
|
||||
productId: freezed == productId
|
||||
? _value.productId
|
||||
: productId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
productName: freezed == productName
|
||||
? _value.productName
|
||||
: productName // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
quantitySold: freezed == quantitySold
|
||||
? _value.quantitySold
|
||||
: quantitySold // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
revenue: freezed == revenue
|
||||
? _value.revenue
|
||||
: revenue // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
)
|
||||
as $Val,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$ProfitSharingTopProductDtoImplCopyWith<$Res>
|
||||
implements $ProfitSharingTopProductDtoCopyWith<$Res> {
|
||||
factory _$$ProfitSharingTopProductDtoImplCopyWith(
|
||||
_$ProfitSharingTopProductDtoImpl value,
|
||||
$Res Function(_$ProfitSharingTopProductDtoImpl) then,
|
||||
) = __$$ProfitSharingTopProductDtoImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({
|
||||
@JsonKey(name: 'product_id') String? productId,
|
||||
@JsonKey(name: 'product_name') String? productName,
|
||||
@JsonKey(name: 'quantity_sold') num? quantitySold,
|
||||
@JsonKey(name: 'revenue') num? revenue,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$ProfitSharingTopProductDtoImplCopyWithImpl<$Res>
|
||||
extends
|
||||
_$ProfitSharingTopProductDtoCopyWithImpl<
|
||||
$Res,
|
||||
_$ProfitSharingTopProductDtoImpl
|
||||
>
|
||||
implements _$$ProfitSharingTopProductDtoImplCopyWith<$Res> {
|
||||
__$$ProfitSharingTopProductDtoImplCopyWithImpl(
|
||||
_$ProfitSharingTopProductDtoImpl _value,
|
||||
$Res Function(_$ProfitSharingTopProductDtoImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of ProfitSharingTopProductDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? productId = freezed,
|
||||
Object? productName = freezed,
|
||||
Object? quantitySold = freezed,
|
||||
Object? revenue = freezed,
|
||||
}) {
|
||||
return _then(
|
||||
_$ProfitSharingTopProductDtoImpl(
|
||||
productId: freezed == productId
|
||||
? _value.productId
|
||||
: productId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
productName: freezed == productName
|
||||
? _value.productName
|
||||
: productName // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
quantitySold: freezed == quantitySold
|
||||
? _value.quantitySold
|
||||
: quantitySold // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
revenue: freezed == revenue
|
||||
? _value.revenue
|
||||
: revenue // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$ProfitSharingTopProductDtoImpl extends _ProfitSharingTopProductDto {
|
||||
const _$ProfitSharingTopProductDtoImpl({
|
||||
@JsonKey(name: 'product_id') this.productId,
|
||||
@JsonKey(name: 'product_name') this.productName,
|
||||
@JsonKey(name: 'quantity_sold') this.quantitySold,
|
||||
@JsonKey(name: 'revenue') this.revenue,
|
||||
}) : super._();
|
||||
|
||||
factory _$ProfitSharingTopProductDtoImpl.fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _$$ProfitSharingTopProductDtoImplFromJson(json);
|
||||
|
||||
@override
|
||||
@JsonKey(name: 'product_id')
|
||||
final String? productId;
|
||||
@override
|
||||
@JsonKey(name: 'product_name')
|
||||
final String? productName;
|
||||
@override
|
||||
@JsonKey(name: 'quantity_sold')
|
||||
final num? quantitySold;
|
||||
@override
|
||||
@JsonKey(name: 'revenue')
|
||||
final num? revenue;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ProfitSharingTopProductDto(productId: $productId, productName: $productName, quantitySold: $quantitySold, revenue: $revenue)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$ProfitSharingTopProductDtoImpl &&
|
||||
(identical(other.productId, productId) ||
|
||||
other.productId == productId) &&
|
||||
(identical(other.productName, productName) ||
|
||||
other.productName == productName) &&
|
||||
(identical(other.quantitySold, quantitySold) ||
|
||||
other.quantitySold == quantitySold) &&
|
||||
(identical(other.revenue, revenue) || other.revenue == revenue));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode =>
|
||||
Object.hash(runtimeType, productId, productName, quantitySold, revenue);
|
||||
|
||||
/// Create a copy of ProfitSharingTopProductDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$ProfitSharingTopProductDtoImplCopyWith<_$ProfitSharingTopProductDtoImpl>
|
||||
get copyWith =>
|
||||
__$$ProfitSharingTopProductDtoImplCopyWithImpl<
|
||||
_$ProfitSharingTopProductDtoImpl
|
||||
>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$ProfitSharingTopProductDtoImplToJson(this);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _ProfitSharingTopProductDto extends ProfitSharingTopProductDto {
|
||||
const factory _ProfitSharingTopProductDto({
|
||||
@JsonKey(name: 'product_id') final String? productId,
|
||||
@JsonKey(name: 'product_name') final String? productName,
|
||||
@JsonKey(name: 'quantity_sold') final num? quantitySold,
|
||||
@JsonKey(name: 'revenue') final num? revenue,
|
||||
}) = _$ProfitSharingTopProductDtoImpl;
|
||||
const _ProfitSharingTopProductDto._() : super._();
|
||||
|
||||
factory _ProfitSharingTopProductDto.fromJson(Map<String, dynamic> json) =
|
||||
_$ProfitSharingTopProductDtoImpl.fromJson;
|
||||
|
||||
@override
|
||||
@JsonKey(name: 'product_id')
|
||||
String? get productId;
|
||||
@override
|
||||
@JsonKey(name: 'product_name')
|
||||
String? get productName;
|
||||
@override
|
||||
@JsonKey(name: 'quantity_sold')
|
||||
num? get quantitySold;
|
||||
@override
|
||||
@JsonKey(name: 'revenue')
|
||||
num? get revenue;
|
||||
|
||||
/// Create a copy of ProfitSharingTopProductDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$ProfitSharingTopProductDtoImplCopyWith<_$ProfitSharingTopProductDtoImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
ProfitSharingBudgetDto _$ProfitSharingBudgetDtoFromJson(
|
||||
Map<String, dynamic> json,
|
||||
) {
|
||||
@@ -15544,8 +15897,8 @@ mixin _$ProfitSharingPeriodDto {
|
||||
num? get orderCount => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'limit_purchase')
|
||||
num? get limitPurchase => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'limit_owner')
|
||||
num? get limitOwner => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'sdl')
|
||||
num? get sdl => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'limit_team')
|
||||
num? get limitTeam => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'month')
|
||||
@@ -15576,7 +15929,7 @@ abstract class $ProfitSharingPeriodDtoCopyWith<$Res> {
|
||||
@JsonKey(name: 'revenue') num? revenue,
|
||||
@JsonKey(name: 'order_count') num? orderCount,
|
||||
@JsonKey(name: 'limit_purchase') num? limitPurchase,
|
||||
@JsonKey(name: 'limit_owner') num? limitOwner,
|
||||
@JsonKey(name: 'sdl') num? sdl,
|
||||
@JsonKey(name: 'limit_team') num? limitTeam,
|
||||
@JsonKey(name: 'month') String? month,
|
||||
@JsonKey(name: 'week_count') num? weekCount,
|
||||
@@ -15606,7 +15959,7 @@ class _$ProfitSharingPeriodDtoCopyWithImpl<
|
||||
Object? revenue = freezed,
|
||||
Object? orderCount = freezed,
|
||||
Object? limitPurchase = freezed,
|
||||
Object? limitOwner = freezed,
|
||||
Object? sdl = freezed,
|
||||
Object? limitTeam = freezed,
|
||||
Object? month = freezed,
|
||||
Object? weekCount = freezed,
|
||||
@@ -15633,9 +15986,9 @@ class _$ProfitSharingPeriodDtoCopyWithImpl<
|
||||
? _value.limitPurchase
|
||||
: limitPurchase // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
limitOwner: freezed == limitOwner
|
||||
? _value.limitOwner
|
||||
: limitOwner // ignore: cast_nullable_to_non_nullable
|
||||
sdl: freezed == sdl
|
||||
? _value.sdl
|
||||
: sdl // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
limitTeam: freezed == limitTeam
|
||||
? _value.limitTeam
|
||||
@@ -15670,7 +16023,7 @@ abstract class _$$ProfitSharingPeriodDtoImplCopyWith<$Res>
|
||||
@JsonKey(name: 'revenue') num? revenue,
|
||||
@JsonKey(name: 'order_count') num? orderCount,
|
||||
@JsonKey(name: 'limit_purchase') num? limitPurchase,
|
||||
@JsonKey(name: 'limit_owner') num? limitOwner,
|
||||
@JsonKey(name: 'sdl') num? sdl,
|
||||
@JsonKey(name: 'limit_team') num? limitTeam,
|
||||
@JsonKey(name: 'month') String? month,
|
||||
@JsonKey(name: 'week_count') num? weekCount,
|
||||
@@ -15697,7 +16050,7 @@ class __$$ProfitSharingPeriodDtoImplCopyWithImpl<$Res>
|
||||
Object? revenue = freezed,
|
||||
Object? orderCount = freezed,
|
||||
Object? limitPurchase = freezed,
|
||||
Object? limitOwner = freezed,
|
||||
Object? sdl = freezed,
|
||||
Object? limitTeam = freezed,
|
||||
Object? month = freezed,
|
||||
Object? weekCount = freezed,
|
||||
@@ -15724,9 +16077,9 @@ class __$$ProfitSharingPeriodDtoImplCopyWithImpl<$Res>
|
||||
? _value.limitPurchase
|
||||
: limitPurchase // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
limitOwner: freezed == limitOwner
|
||||
? _value.limitOwner
|
||||
: limitOwner // ignore: cast_nullable_to_non_nullable
|
||||
sdl: freezed == sdl
|
||||
? _value.sdl
|
||||
: sdl // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
limitTeam: freezed == limitTeam
|
||||
? _value.limitTeam
|
||||
@@ -15754,7 +16107,7 @@ class _$ProfitSharingPeriodDtoImpl extends _ProfitSharingPeriodDto {
|
||||
@JsonKey(name: 'revenue') this.revenue,
|
||||
@JsonKey(name: 'order_count') this.orderCount,
|
||||
@JsonKey(name: 'limit_purchase') this.limitPurchase,
|
||||
@JsonKey(name: 'limit_owner') this.limitOwner,
|
||||
@JsonKey(name: 'sdl') this.sdl,
|
||||
@JsonKey(name: 'limit_team') this.limitTeam,
|
||||
@JsonKey(name: 'month') this.month,
|
||||
@JsonKey(name: 'week_count') this.weekCount,
|
||||
@@ -15779,8 +16132,8 @@ class _$ProfitSharingPeriodDtoImpl extends _ProfitSharingPeriodDto {
|
||||
@JsonKey(name: 'limit_purchase')
|
||||
final num? limitPurchase;
|
||||
@override
|
||||
@JsonKey(name: 'limit_owner')
|
||||
final num? limitOwner;
|
||||
@JsonKey(name: 'sdl')
|
||||
final num? sdl;
|
||||
@override
|
||||
@JsonKey(name: 'limit_team')
|
||||
final num? limitTeam;
|
||||
@@ -15793,7 +16146,7 @@ class _$ProfitSharingPeriodDtoImpl extends _ProfitSharingPeriodDto {
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ProfitSharingPeriodDto(periodStart: $periodStart, periodEnd: $periodEnd, revenue: $revenue, orderCount: $orderCount, limitPurchase: $limitPurchase, limitOwner: $limitOwner, limitTeam: $limitTeam, month: $month, weekCount: $weekCount)';
|
||||
return 'ProfitSharingPeriodDto(periodStart: $periodStart, periodEnd: $periodEnd, revenue: $revenue, orderCount: $orderCount, limitPurchase: $limitPurchase, sdl: $sdl, limitTeam: $limitTeam, month: $month, weekCount: $weekCount)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -15810,8 +16163,7 @@ class _$ProfitSharingPeriodDtoImpl extends _ProfitSharingPeriodDto {
|
||||
other.orderCount == orderCount) &&
|
||||
(identical(other.limitPurchase, limitPurchase) ||
|
||||
other.limitPurchase == limitPurchase) &&
|
||||
(identical(other.limitOwner, limitOwner) ||
|
||||
other.limitOwner == limitOwner) &&
|
||||
(identical(other.sdl, sdl) || other.sdl == sdl) &&
|
||||
(identical(other.limitTeam, limitTeam) ||
|
||||
other.limitTeam == limitTeam) &&
|
||||
(identical(other.month, month) || other.month == month) &&
|
||||
@@ -15828,7 +16180,7 @@ class _$ProfitSharingPeriodDtoImpl extends _ProfitSharingPeriodDto {
|
||||
revenue,
|
||||
orderCount,
|
||||
limitPurchase,
|
||||
limitOwner,
|
||||
sdl,
|
||||
limitTeam,
|
||||
month,
|
||||
weekCount,
|
||||
@@ -15859,7 +16211,7 @@ abstract class _ProfitSharingPeriodDto extends ProfitSharingPeriodDto {
|
||||
@JsonKey(name: 'revenue') final num? revenue,
|
||||
@JsonKey(name: 'order_count') final num? orderCount,
|
||||
@JsonKey(name: 'limit_purchase') final num? limitPurchase,
|
||||
@JsonKey(name: 'limit_owner') final num? limitOwner,
|
||||
@JsonKey(name: 'sdl') final num? sdl,
|
||||
@JsonKey(name: 'limit_team') final num? limitTeam,
|
||||
@JsonKey(name: 'month') final String? month,
|
||||
@JsonKey(name: 'week_count') final num? weekCount,
|
||||
@@ -15885,8 +16237,8 @@ abstract class _ProfitSharingPeriodDto extends ProfitSharingPeriodDto {
|
||||
@JsonKey(name: 'limit_purchase')
|
||||
num? get limitPurchase;
|
||||
@override
|
||||
@JsonKey(name: 'limit_owner')
|
||||
num? get limitOwner;
|
||||
@JsonKey(name: 'sdl')
|
||||
num? get sdl;
|
||||
@override
|
||||
@JsonKey(name: 'limit_team')
|
||||
num? get limitTeam;
|
||||
@@ -16366,6 +16718,10 @@ ProfitSharingSummaryDto _$ProfitSharingSummaryDtoFromJson(
|
||||
|
||||
/// @nodoc
|
||||
mixin _$ProfitSharingSummaryDto {
|
||||
@JsonKey(name: 'owner_fee_percent')
|
||||
num? get ownerFeePercent => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'sdl')
|
||||
num? get sdl => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'total_revenue')
|
||||
num? get totalRevenue => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'total_quantity')
|
||||
@@ -16401,6 +16757,8 @@ abstract class $ProfitSharingSummaryDtoCopyWith<$Res> {
|
||||
) = _$ProfitSharingSummaryDtoCopyWithImpl<$Res, ProfitSharingSummaryDto>;
|
||||
@useResult
|
||||
$Res call({
|
||||
@JsonKey(name: 'owner_fee_percent') num? ownerFeePercent,
|
||||
@JsonKey(name: 'sdl') num? sdl,
|
||||
@JsonKey(name: 'total_revenue') num? totalRevenue,
|
||||
@JsonKey(name: 'total_quantity') num? totalQuantity,
|
||||
@JsonKey(name: 'category_count') num? categoryCount,
|
||||
@@ -16430,6 +16788,8 @@ class _$ProfitSharingSummaryDtoCopyWithImpl<
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? ownerFeePercent = freezed,
|
||||
Object? sdl = freezed,
|
||||
Object? totalRevenue = freezed,
|
||||
Object? totalQuantity = freezed,
|
||||
Object? categoryCount = freezed,
|
||||
@@ -16441,6 +16801,14 @@ class _$ProfitSharingSummaryDtoCopyWithImpl<
|
||||
}) {
|
||||
return _then(
|
||||
_value.copyWith(
|
||||
ownerFeePercent: freezed == ownerFeePercent
|
||||
? _value.ownerFeePercent
|
||||
: ownerFeePercent // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
sdl: freezed == sdl
|
||||
? _value.sdl
|
||||
: sdl // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
totalRevenue: freezed == totalRevenue
|
||||
? _value.totalRevenue
|
||||
: totalRevenue // ignore: cast_nullable_to_non_nullable
|
||||
@@ -16489,6 +16857,8 @@ abstract class _$$ProfitSharingSummaryDtoImplCopyWith<$Res>
|
||||
@override
|
||||
@useResult
|
||||
$Res call({
|
||||
@JsonKey(name: 'owner_fee_percent') num? ownerFeePercent,
|
||||
@JsonKey(name: 'sdl') num? sdl,
|
||||
@JsonKey(name: 'total_revenue') num? totalRevenue,
|
||||
@JsonKey(name: 'total_quantity') num? totalQuantity,
|
||||
@JsonKey(name: 'category_count') num? categoryCount,
|
||||
@@ -16518,6 +16888,8 @@ class __$$ProfitSharingSummaryDtoImplCopyWithImpl<$Res>
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? ownerFeePercent = freezed,
|
||||
Object? sdl = freezed,
|
||||
Object? totalRevenue = freezed,
|
||||
Object? totalQuantity = freezed,
|
||||
Object? categoryCount = freezed,
|
||||
@@ -16529,6 +16901,14 @@ class __$$ProfitSharingSummaryDtoImplCopyWithImpl<$Res>
|
||||
}) {
|
||||
return _then(
|
||||
_$ProfitSharingSummaryDtoImpl(
|
||||
ownerFeePercent: freezed == ownerFeePercent
|
||||
? _value.ownerFeePercent
|
||||
: ownerFeePercent // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
sdl: freezed == sdl
|
||||
? _value.sdl
|
||||
: sdl // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
totalRevenue: freezed == totalRevenue
|
||||
? _value.totalRevenue
|
||||
: totalRevenue // ignore: cast_nullable_to_non_nullable
|
||||
@@ -16570,6 +16950,8 @@ class __$$ProfitSharingSummaryDtoImplCopyWithImpl<$Res>
|
||||
@JsonSerializable()
|
||||
class _$ProfitSharingSummaryDtoImpl extends _ProfitSharingSummaryDto {
|
||||
const _$ProfitSharingSummaryDtoImpl({
|
||||
@JsonKey(name: 'owner_fee_percent') this.ownerFeePercent,
|
||||
@JsonKey(name: 'sdl') this.sdl,
|
||||
@JsonKey(name: 'total_revenue') this.totalRevenue,
|
||||
@JsonKey(name: 'total_quantity') this.totalQuantity,
|
||||
@JsonKey(name: 'category_count') this.categoryCount,
|
||||
@@ -16583,6 +16965,12 @@ class _$ProfitSharingSummaryDtoImpl extends _ProfitSharingSummaryDto {
|
||||
factory _$ProfitSharingSummaryDtoImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$ProfitSharingSummaryDtoImplFromJson(json);
|
||||
|
||||
@override
|
||||
@JsonKey(name: 'owner_fee_percent')
|
||||
final num? ownerFeePercent;
|
||||
@override
|
||||
@JsonKey(name: 'sdl')
|
||||
final num? sdl;
|
||||
@override
|
||||
@JsonKey(name: 'total_revenue')
|
||||
final num? totalRevenue;
|
||||
@@ -16610,7 +16998,7 @@ class _$ProfitSharingSummaryDtoImpl extends _ProfitSharingSummaryDto {
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ProfitSharingSummaryDto(totalRevenue: $totalRevenue, totalQuantity: $totalQuantity, categoryCount: $categoryCount, productCount: $productCount, orderCount: $orderCount, totalStandardHpp: $totalStandardHpp, totalFifoHpp: $totalFifoHpp, totalMovingAverageHpp: $totalMovingAverageHpp)';
|
||||
return 'ProfitSharingSummaryDto(ownerFeePercent: $ownerFeePercent, sdl: $sdl, totalRevenue: $totalRevenue, totalQuantity: $totalQuantity, categoryCount: $categoryCount, productCount: $productCount, orderCount: $orderCount, totalStandardHpp: $totalStandardHpp, totalFifoHpp: $totalFifoHpp, totalMovingAverageHpp: $totalMovingAverageHpp)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -16618,6 +17006,9 @@ class _$ProfitSharingSummaryDtoImpl extends _ProfitSharingSummaryDto {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$ProfitSharingSummaryDtoImpl &&
|
||||
(identical(other.ownerFeePercent, ownerFeePercent) ||
|
||||
other.ownerFeePercent == ownerFeePercent) &&
|
||||
(identical(other.sdl, sdl) || other.sdl == sdl) &&
|
||||
(identical(other.totalRevenue, totalRevenue) ||
|
||||
other.totalRevenue == totalRevenue) &&
|
||||
(identical(other.totalQuantity, totalQuantity) ||
|
||||
@@ -16640,6 +17031,8 @@ class _$ProfitSharingSummaryDtoImpl extends _ProfitSharingSummaryDto {
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
ownerFeePercent,
|
||||
sdl,
|
||||
totalRevenue,
|
||||
totalQuantity,
|
||||
categoryCount,
|
||||
@@ -16669,6 +17062,8 @@ class _$ProfitSharingSummaryDtoImpl extends _ProfitSharingSummaryDto {
|
||||
|
||||
abstract class _ProfitSharingSummaryDto extends ProfitSharingSummaryDto {
|
||||
const factory _ProfitSharingSummaryDto({
|
||||
@JsonKey(name: 'owner_fee_percent') final num? ownerFeePercent,
|
||||
@JsonKey(name: 'sdl') final num? sdl,
|
||||
@JsonKey(name: 'total_revenue') final num? totalRevenue,
|
||||
@JsonKey(name: 'total_quantity') final num? totalQuantity,
|
||||
@JsonKey(name: 'category_count') final num? categoryCount,
|
||||
@@ -16683,6 +17078,12 @@ abstract class _ProfitSharingSummaryDto extends ProfitSharingSummaryDto {
|
||||
factory _ProfitSharingSummaryDto.fromJson(Map<String, dynamic> json) =
|
||||
_$ProfitSharingSummaryDtoImpl.fromJson;
|
||||
|
||||
@override
|
||||
@JsonKey(name: 'owner_fee_percent')
|
||||
num? get ownerFeePercent;
|
||||
@override
|
||||
@JsonKey(name: 'sdl')
|
||||
num? get sdl;
|
||||
@override
|
||||
@JsonKey(name: 'total_revenue')
|
||||
num? get totalRevenue;
|
||||
|
||||
Reference in New Issue
Block a user