|
|
@@ -119,9 +119,9 @@ class Product extends ActiveRecordCommon |
|
|
|
{ |
|
|
|
return [ |
|
|
|
[['name', 'id_producer'], 'required'], |
|
|
|
[['active', 'order', 'quantity_max', 'id_producer', 'id_tax_rate', 'quantity_max_monday', 'quantity_max_tuesday', 'quantity_max_wednesday', 'quantity_max_thursday', 'quantity_max_friday', 'quantity_max_saturday', 'quantity_max_sunday'], 'integer'], |
|
|
|
[['active', 'order', 'id_producer', 'id_tax_rate'], 'integer'], |
|
|
|
[['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday', 'unavailable', 'apply_distributions'], 'boolean'], |
|
|
|
[['price', 'weight', 'step'], 'number'], |
|
|
|
[['price', 'weight', 'step', 'quantity_max', 'quantity_max_monday', 'quantity_max_tuesday', 'quantity_max_wednesday', 'quantity_max_thursday', 'quantity_max_friday', 'quantity_max_saturday', 'quantity_max_sunday'], 'number'], |
|
|
|
[['photo'], 'file'], |
|
|
|
[['name', 'description', 'photo', 'unit'], 'string', 'max' => 255], |
|
|
|
[['recipe'], 'string', 'max' => 1000], |