Your IP : 216.73.216.79


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

<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "payment_voucher".
 *
 * @property int $id
 * @property string $uuid
 * @property string|null $doc_no
 * @property string|null $receiver_type
 * @property string|null $receiver_id
 * @property string|null $receiver_name
 * @property string|null $receiver_address1
 * @property string|null $receiver_address2
 * @property string|null $receiver_postcode
 * @property string|null $receiver_city
 * @property string|null $receiver_state
 * @property string|null $receiver_pic
 * @property string|null $receiver_phone
 * @property string|null $receiver_account_bank
 * @property string|null $receiver_account_name
 * @property string|null $receiver_account_number
 * @property string|null $remarks
 * @property string|null $total
 * @property string|null $created_dt
 * @property int|null $created_by
 * @property string|null $updated_dt
 * @property int|null $updated_by
 */
class PaymentVoucher extends \yii\db\ActiveRecord {

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

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['company_id','receiver_name'], 'required'],
            [['remarks'], 'string'],
            [['created_dt', 'updated_dt', 'uuid','deleted_status'], 'safe'],
            [['created_by', 'updated_by'], 'integer'],
            [['doc_no', 'receiver_type', 'receiver_id', 'receiver_name', 'receiver_address1', 'receiver_address2', 'receiver_postcode', 'receiver_city', 'receiver_state', 'receiver_pic', 'receiver_phone', 'receiver_account_bank', 'receiver_account_name', 'receiver_account_number'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'uuid' => 'Uuid',
            'doc_no' => 'Voucher No',
            'receiver_type' => 'Receiver Type',
            'receiver_id' => 'Receiver',
            'receiver_name' => 'Receiver Name',
            'receiver_address1' => 'Address',
            'receiver_address2' => 'Address2',
            'receiver_postcode' => 'Postcode',
            'receiver_city' => 'City',
            'receiver_state' => 'State',
            'receiver_pic' => 'Contact Person',
            'receiver_phone' => 'Contact Number',
            'receiver_account_bank' => 'Account Bank',
            'receiver_account_name' => 'Account Holder Name',
            'receiver_account_number' => 'Account Number',
            'remarks' => 'Remarks',
            'created_dt' => 'Created On',
            'created_by' => 'Created By',
            'updated_dt' => 'Updated Dt',
            'updated_by' => 'Updated By',
            'company_id' => 'Company',
        ];
    }

}