|
|
@@ -74,9 +74,9 @@ class SubscriptionForm extends Model |
|
|
|
public function rules() |
|
|
|
{ |
|
|
|
return [ |
|
|
|
[['id_producer', 'week_frequency', 'id_point_sale','id'], 'integer'], |
|
|
|
[['id_producer', 'week_frequency', 'id_point_sale','id', 'auto_payment'], 'integer'], |
|
|
|
[['date_begin', 'date_end'], 'date', 'format' => 'php:d/m/Y'], |
|
|
|
[['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday', 'auto_payment'], 'boolean'], |
|
|
|
[['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'], 'boolean'], |
|
|
|
[['id_point_sale', 'id_producer', 'date_begin'], 'required', 'message' => 'Champs obligatoire'], |
|
|
|
[['products', 'id_user', 'username','comment'], 'safe'], |
|
|
|
['id_user', function ($attribute, $params) { |