|
|
@@ -116,6 +116,11 @@ class Producer extends ActiveRecordCommon |
|
|
|
$this->addError($attribute, 'Ce code est déjà utilisé par un autre producteur.'); |
|
|
|
} |
|
|
|
}], |
|
|
|
[['document_quotation_prefix', 'document_invoice_prefix', 'document_delivery_note_prefix'], function($attribute, $params) { |
|
|
|
if(!ctype_upper($this->$attribute)) { |
|
|
|
$this->addError($attribute, 'Ne doit contenir que des majuscules') ; |
|
|
|
} |
|
|
|
}], |
|
|
|
[['description', 'mentions', 'gcs', 'order_infos', 'slug', 'secret_key_payplug', 'background_color_logo', 'option_behavior_cancel_order', 'tiller_provider_token', 'tiller_restaurant_token', 'status', |
|
|
|
'document_infos_bottom', 'document_infos_quotation', 'document_infos_invoice', 'document_infos_delivery_note', 'address'], 'string'], |
|
|
|
[['negative_balance', 'credit', 'active', 'online_payment', 'user_manage_subscription', 'option_allow_user_gift', 'use_credit_checked_default', 'tiller'], 'boolean'], |