| Current Path : /var/www/html/crm/models/ |
| Current File : /var/www/html/crm/models/StockTransfer.php |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "stock_transfer".
*
* @property int $id
* @property string $uuid
* @property string $stockout_owner_type
* @property int $stockout_owner_id
* @property int $stockout_product_id
* @property int $stockout_quantity
* @property int $stockout_stock_id
* @property string $stockin_owner_type
* @property int $stockin_owner_id
* @property int $stockin_product_id
* @property int $stockin_quantity
* @property int $stockin_stock_id
* @property string $remarks
* @property string $transfer_dt
* @property int $deleted_status
* @property string $created_dt
* @property int $created_by
*/
class StockTransfer extends \yii\db\ActiveRecord {
public $stockout_product_name;
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'stock_transfer';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['uuid', 'stockout_owner_type', 'stockout_owner_id', 'stockout_product_id','stockout_product_name', 'stockout_quantity', 'stockin_owner_type', 'stockin_owner_id', 'stockin_product_id', 'stockin_quantity'], 'required'],
[['stockout_owner_id', 'stockout_product_id', 'stockout_quantity', 'stockout_stock_id', 'stockin_owner_id', 'stockin_product_id', 'stockin_quantity', 'stockin_stock_id', 'deleted_status', 'created_by'], 'integer'],
[['remarks'], 'string'],
[['transfer_dt', 'created_dt', 'eas_id'], 'safe'],
[['stockout_owner_type', 'stockin_owner_type'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'uuid' => 'Uuid',
'stockout_owner_type' => 'Stock-Out Owner Type',
'stockout_owner_id' => 'Stock-Out Owner',
'stockout_product_id' => 'Stock-Out Product',
'stockout_quantity' => 'Stock-Out Quantity',
'stockout_stock_id' => 'Stockout Stock ID',
'stockin_owner_type' => 'Stock-In Owner Type',
'stockin_owner_id' => 'Stock-In Owner',
'stockin_product_id' => 'Stock-In Product',
'stockin_quantity' => 'Stock-In Quantity',
'stockin_stock_id' => 'Stockin Stock ID',
'remarks' => 'Remarks',
'transfer_dt' => 'Transfer Date',
'deleted_status' => 'Deleted Status',
'created_dt' => 'Created Dt',
'created_by' => 'Created By',
'eas_id' => 'EAS ID',
'stockout_product_name'=>'Stock-Out Product'
];
}
}