<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * Class InvoiceTemp
 * 
 * @property string $inv_no
 * @property string|null $hire_purchaseID
 * @property int|null $cus_id
 * @property float $tot_inv_price
 * @property float $tot_discount
 * @property float $sub_total
 * @property float|null $hire_p_advance
 * @property string $pay_stat
 * @property Carbon $added_date
 * @property Carbon $added_time
 * @property string $delivery_no
 * @property int $added_by
 * @property string $cmp_id
 * @property string|null $inv_type
 * @property string|null $status
 *
 * @package App\Models
 */
class InvoiceTemp extends Model
{
	protected $table = 'invoice_temp';
	protected $primaryKey = 'inv_no';
	public $incrementing = false;
	public $timestamps = false;

	protected $casts = [
		'cus_id' => 'int',
		'tot_inv_price' => 'float',
		'tot_discount' => 'float',
		'sub_total' => 'float',
		'hire_p_advance' => 'float',
		'added_date' => 'datetime',
		'added_time' => 'datetime',
		'added_by' => 'int'
	];

	protected $fillable = [
		'hire_purchaseID',
		'cus_id',
		'tot_inv_price',
		'tot_discount',
		'sub_total',
		'hire_p_advance',
		'pay_stat',
		'added_date',
		'added_time',
		'delivery_no',
		'added_by',
		'cmp_id',
		'inv_type',
		'status'
	];
}
