| Current Path : /var/www/html/crm/models/ |
| Current File : /var/www/html/crm/models/InvoiceItem.php |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "invoice_item".
*
* @property int $id
* @property int $doc_id
* @property string $descr
* @property string $uom
* @property int $quantity
* @property string $unit_price
* @property string $discount
* @property string $total
* @property string $created_dt
* @property int $created_by
* @property string $updated_dt
* @property int $updated_by
*/
class InvoiceItem extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'invoice_item';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['doc_id', 'quantity', 'created_by', 'updated_by'], 'integer'],
[['created_dt', 'updated_dt', 'owner_type', 'owner_id', 'descr'], 'safe'],
[['uom'], 'string', 'max' => 255],
[['unit_price', 'discount', 'total'], 'string', 'max' => 10],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'doc_id' => 'Doc ID',
'descr' => 'Descr',
'uom' => 'Uom',
'quantity' => 'Quantity',
'unit_price' => 'Unit Price',
'discount' => 'Discount',
'total' => 'Total',
'created_dt' => 'Created Dt',
'created_by' => 'Created By',
'updated_dt' => 'Updated Dt',
'updated_by' => 'Updated By',
];
}
}