18 lines
432 B
PHP
18 lines
432 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class StockMovement extends Model
|
|
{
|
|
protected $fillable = ['stock_variant_id', 'employee_id', 'uniform_issue_id', 'type', 'quantity_change', 'stock_category', 'unit_value', 'notes'];
|
|
|
|
protected $casts = ['unit_value' => 'decimal:2'];
|
|
|
|
public function variant()
|
|
{
|
|
return $this->belongsTo(StockVariant::class, 'stock_variant_id');
|
|
}
|
|
}
|