<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

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

/**
 * Class ItemReturn
 * 
 * @property int $return_no
 * @property int $inv_no
 * @property int $item_code
 * @property float $unit_sales_price
 * @property float $return_qty
 * @property float $tot_price
 * @property Carbon $return_date
 * @property Carbon $return_time
 * @property int $added_by
 * @property int|null $item_stk_id
 *
 * @package App\Models
 */
class ItemReturn extends Model
{
	protected $table = 'item_returns';
	protected $primaryKey = 'return_no';
	public $timestamps = false;

	protected $casts = [
		'inv_no' => 'int',
		'item_code' => 'int',
		'unit_sales_price' => 'float',
		'return_qty' => 'float',
		'tot_price' => 'float',
		'return_date' => 'datetime',
		'return_time' => 'datetime',
		'added_by' => 'int',
		'item_stk_id' => 'int'
	];

	protected $fillable = [
		'inv_no',
		'item_code',
		'unit_sales_price',
		'return_qty',
		'tot_price',
		'return_date',
		'return_time',
		'added_by',
		'item_stk_id'
	];
}
