|
|
@@ -58,6 +58,7 @@ use yii\helpers\Html; |
|
|
|
* @property boolean online_payment |
|
|
|
* @property string mentions |
|
|
|
* @property string gcs |
|
|
|
* @property boolean option_allow_user_gift |
|
|
|
*/ |
|
|
|
class Producer extends ActiveRecordCommon |
|
|
|
{ |
|
|
@@ -89,7 +90,7 @@ class Producer extends ActiveRecordCommon |
|
|
|
} |
|
|
|
}], |
|
|
|
[['description','mentions','gcs','order_infos','slug','secret_key_payplug'], 'string'], |
|
|
|
[['negative_balance', 'credit', 'active','online_payment','user_manage_subscription'], 'boolean'], |
|
|
|
[['negative_balance', 'credit', 'active','online_payment','user_manage_subscription', 'option_allow_user_gift'], 'boolean'], |
|
|
|
[['name', 'siret', 'logo', 'photo', 'postcode', 'city', 'code','type'], 'string', 'max' => 255], |
|
|
|
[['free_price', 'credit_limit_reminder'], 'double'], |
|
|
|
['free_price', 'compare', 'compareValue' => 0, 'operator' => '>=', 'type' => 'number', 'message' => 'Prix libre doit être supérieur ou égal à 0'], |
|
|
@@ -126,6 +127,7 @@ class Producer extends ActiveRecordCommon |
|
|
|
'user_manage_subscription' => 'Autoriser les utilisateurs à gérer leurs abonnements', |
|
|
|
'mentions' => 'Mentions légales', |
|
|
|
'gcs' => 'Conditions générales de vente', |
|
|
|
'option_allow_user_gift' => 'Autoriser les utilisateurs à effectuer un don à la plateforme lors de leur commande', |
|
|
|
]; |
|
|
|
} |
|
|
|
|