|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
-
- namespace common\models;
-
- use common\components\ActiveRecordCommon;
- use Yii;
-
-
- class TaxRate extends ActiveRecordCommon
- {
-
-
- public static function tableName()
- {
- return 'tax_rate';
- }
-
-
-
- public function rules()
- {
- return [
- [['value'], 'number'],
- [['name'], 'string', 'max' => 255],
- ];
- }
-
-
-
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'name' => 'Nom',
- 'value' => 'Valeur (0.2 pour 20%)',
- ];
- }
-
-
-
- public static function defaultOptionsSearch() {
- return [
- 'with' => [],
- 'join_with' => [],
- 'orderby' => 'pourcent ASC',
- 'attribute_id_producer' => ''
- ] ;
- }
- }
|