diff --git a/app/Models/Cutting.php b/app/Models/Cutting.php index f36bb42..393f174 100644 --- a/app/Models/Cutting.php +++ b/app/Models/Cutting.php @@ -23,6 +23,8 @@ protected function casts(): array 'status' => CuttingStatus::class, 'total_material_cost' => 'integer', 'cost_per_unit' => 'integer', + 'sewing_cost' => 'integer', + 'other_cost' => 'integer', ]; } diff --git a/app/Models/Order.php b/app/Models/Order.php index a1d0e65..fd6abb2 100644 --- a/app/Models/Order.php +++ b/app/Models/Order.php @@ -35,6 +35,7 @@ protected function casts(): array 'nego_price' => 'integer', 'total_amount' => 'integer', 'cogs' => 'integer', + 'marketplace_settings_snapshot' => 'array', ]; } diff --git a/app/Models/OwnerVerificationRequest.php b/app/Models/OwnerVerificationRequest.php index d220825..c4ed7f3 100644 --- a/app/Models/OwnerVerificationRequest.php +++ b/app/Models/OwnerVerificationRequest.php @@ -16,6 +16,7 @@ class OwnerVerificationRequest extends Model protected function casts(): array { return [ + 'payload' => 'array', 'verified_at' => 'datetime', ]; } diff --git a/app/Models/PayrollPeriod.php b/app/Models/PayrollPeriod.php index 04f925b..52164ef 100644 --- a/app/Models/PayrollPeriod.php +++ b/app/Models/PayrollPeriod.php @@ -22,6 +22,8 @@ protected function casts(): array { return [ 'status' => PayrollPeriodStatus::class, + 'year' => 'integer', + 'month' => 'integer', 'closed_at' => 'datetime', ]; } diff --git a/app/Models/ProductVariant.php b/app/Models/ProductVariant.php index 6fa54db..9abbefa 100644 --- a/app/Models/ProductVariant.php +++ b/app/Models/ProductVariant.php @@ -16,6 +16,15 @@ class ProductVariant extends Model implements HasMedia { use HasFactory, InteractsWithMedia, SoftDeletes; + protected function casts(): array + { + return [ + 'stock' => 'integer', + 'reject_stock' => 'integer', + 'retail_stock' => 'integer', + ]; + } + public function orderItems(): HasMany { return $this->hasMany(OrderItem::class);