| Current Path : /var/www/html/crm/models/ |
| Current File : /var/www/html/crm/models/InvoiceInbound.php |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "invoice_inbound".
*
* @property int $id
* @property string $uuid
* @property int $vendor_id
* @property int $com_id
* @property string $doc_url
* @property string $amount
* @property string $invoice_dt
* @property string $payment_status
* @property string $payment_dt
* @property string $created_dt
* @property int $created_by
* @property string $updated_dt
* @property int $updated_by
*/
class InvoiceInbound extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'invoice_inbound';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['uuid', 'vendor_id', 'com_id', 'amount', 'invoice_dt', 'invoice_no', 'term', 'payment_due'], 'required'],
[['vendor_id', 'com_id', 'created_by', 'updated_by'], 'integer'],
[['uuid', 'invoice_dt', 'payment_dt', 'created_dt', 'updated_dt', 'deleted_status', 'remarks'], 'safe'],
[['doc_url', 'amount', 'payment_status'], 'string', 'max' => 255],
[['doc_url'], 'required', 'on' => 'create'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'uuid' => 'Uuid',
'vendor_id' => 'Vendor',
'com_id' => 'Company',
'doc_url' => 'Document Upload',
'amount' => 'Amount',
'invoice_dt' => 'Invoice Date',
'payment_status' => 'Payment Status',
'payment_dt' => 'Payment Date',
'created_dt' => 'Created Dt',
'created_by' => 'Created By',
'updated_dt' => 'Updated Dt',
'updated_by' => 'Updated By',
'invoice_no' => 'Invoice No.',
'term' => 'Payment Term',
'payment_due' => 'Payment Due',
'remarks' => 'Remarks'
];
}
}