<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

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

/**
 * Class CancelInvDetail
 * 
 * @property int $id
 * @property string|null $inv_no
 * @property Carbon|null $inv_date
 * @property string|null $cus_nam
 * @property float|null $total_price
 * @property float|null $tot_discount
 * @property float|null $sub_total
 * @property string|null $inv_type
 * @property float|null $paid
 * @property float|null $issued_qty
 * @property float|null $unit_price
 * @property string|null $item_name
 * @property Carbon|null $cancel_date
 * @property Carbon|null $cancel_time
 * @property string|null $canceled_by
 *
 * @package App\Models
 */
class CancelInvDetail extends Model
{
	protected $table = 'cancel_inv_details';
	public $timestamps = false;

	protected $casts = [
		'inv_date' => 'datetime',
		'total_price' => 'float',
		'tot_discount' => 'float',
		'sub_total' => 'float',
		'paid' => 'float',
		'issued_qty' => 'float',
		'unit_price' => 'float',
		'cancel_date' => 'datetime',
		'cancel_time' => 'datetime'
	];

	protected $fillable = [
		'inv_no',
		'inv_date',
		'cus_nam',
		'total_price',
		'tot_discount',
		'sub_total',
		'inv_type',
		'paid',
		'issued_qty',
		'unit_price',
		'item_name',
		'cancel_date',
		'cancel_time',
		'canceled_by'
	];
}
