Commit cbac1e43d75bab950243acd1e1aa3b08c653d45d

Authored by Administrator
1 parent 9dcd66fc

big commti

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
common/modules/product/models/ProductVariant.php
@@ -61,6 +61,7 @@ class ProductVariant extends \yii\db\ActiveRecord @@ -61,6 +61,7 @@ class ProductVariant extends \yii\db\ActiveRecord
61 return [ 61 return [
62 [['product_id', 'product_unit_id'], 'required'], 62 [['product_id', 'product_unit_id'], 'required'],
63 [['product_id', 'product_unit_id', 'product_variant_type_id','status'], 'integer'], 63 [['product_id', 'product_unit_id', 'product_variant_type_id','status'], 'integer'],
  64 + ['status', 'default', 'value' => 0],
64 [['price', 'price_old', 'stock'], 'number'], 65 [['price', 'price_old', 'stock'], 'number'],
65 [['name', 'sku'], 'string', 'max' => 255], 66 [['name', 'sku'], 'string', 'max' => 255],
66 [['remote_id'], 'string', 'max' => 20], 67 [['remote_id'], 'string', 'max' => 20],