You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TaxRate.php 658B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace common\logic\Config\TaxRate\Model;
  3. use common\components\ActiveRecordCommon;
  4. class TaxRate extends ActiveRecordCommon
  5. {
  6. /**
  7. * @inheritdoc
  8. */
  9. public static function tableName()
  10. {
  11. return 'tax_rate';
  12. }
  13. /**
  14. * @inheritdoc
  15. */
  16. public function rules()
  17. {
  18. return [
  19. [['value'], 'number'],
  20. [['name'], 'string', 'max' => 255],
  21. ];
  22. }
  23. /**
  24. * @inheritdoc
  25. */
  26. public function attributeLabels()
  27. {
  28. return [
  29. 'id' => 'ID',
  30. 'name' => 'Nom',
  31. 'value' => 'Valeur (0.2 pour 20%)',
  32. ];
  33. }
  34. }