Your IP : 216.73.216.79


Current Path : /var/www/html/crm/models/
Upload File :
Current File : /var/www/html/crm/models/CreditnoteItem.php

<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "creditnote_item".
 *
 * @property int $id
 * @property int $doc_id
 * @property int $product_id
 * @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 CreditnoteItem extends \yii\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return 'creditnote_item';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['doc_id', 'product_id', 'quantity', 'created_by', 'updated_by'], 'integer'],
            [['created_dt', 'updated_dt', 'uom', 'unit_price', 'discount', 'total', 'type'], 'safe'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'doc_id' => 'Doc ID',
            'product_id' => 'Product ID',
            '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',
        ];
    }

}