add product sale changes
This commit is contained in:
54
common/models/Currency.php
Normal file
54
common/models/Currency.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
namespace common\models;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "currency".
|
||||
*
|
||||
* @property integer $id_currency
|
||||
* @property string $currency
|
||||
* @property string $name
|
||||
* @property integer $rate
|
||||
* @property string $created_at
|
||||
* @property string $updated_at
|
||||
*/
|
||||
class Currency extends \common\models\BaseFitnessActiveRecord
|
||||
{
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'currency';
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['currency', 'name'], 'required'],
|
||||
[['rate'], 'integer'],
|
||||
[['currency'], 'string', 'max' => 10],
|
||||
[['name'], 'string', 'max' => 32]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id_currency' => Yii::t('common/currency', 'Id Currency'),
|
||||
'currency' => Yii::t('common/currency', 'Currency'),
|
||||
'name' => Yii::t('common/currency', 'Name'),
|
||||
'rate' => Yii::t('common/currency', 'Rate'),
|
||||
'created_at' => Yii::t('common/currency', 'Created At'),
|
||||
'updated_at' => Yii::t('common/currency', 'Updated At'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user