| Current Path : /var/www/html/crm/models/ |
| Current File : /var/www/html/crm/models/Sales.php |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "sales".
*
* @property int $id
* @property string|null $uuid
* @property string|null $sales_dt
* @property string|null $total
* @property int|null $com_id
* @property string|null $branch
* @property string|null $dept
* @property string|null $type
* @property string|null $attachment
* @property string|null $created_dt
* @property int|null $created_by
* @property string|null $updated_dt
* @property int|null $updated_by
*/
class Sales extends \yii\db\ActiveRecord {
public $file;
public $file2;
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'sales';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['total', 'sales_dt', 'descr'], 'required'],
[['sales_dt', 'created_dt', 'updated_dt', 'deleted_status', 'uuid'], 'safe'],
[['com_id', 'created_by', 'updated_by'], 'integer'],
[['total', 'branch', 'dept', 'type', 'attachment', 'attachment2'], 'string', 'max' => 255],
[['file', 'file2'], 'file'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'uuid' => 'Uuid',
'sales_dt' => 'Sales Date',
'total' => 'Total Sales',
'com_id' => 'Company',
'branch' => 'Branch',
'dept' => 'Department',
'type' => 'Sales Type',
'attachment' => 'Daily Collection Report',
'file' => 'Daily Collection Report',
'attachment2' => 'Sale Listing Report',
'file2' => 'Sale Listing Report',
'created_dt' => 'Created Dt',
'created_by' => 'Created By',
'updated_dt' => 'Updated Dt',
'updated_by' => 'Updated By',
'descr' => 'Sales Details'
];
}
}