chore: initial commit of existing codebase

This commit is contained in:
ghassan committed 2026-05-19 12:40:08 +03:00
commit 11e94889b2
292 files changed
+38586

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class MaterialIssue extends Model
{
use HasFactory;
protected $fillable = ['issue_number', 'production_order_id', 'item_id', 'warehouse_id', 'quantity', 'issue_date', 'notes', 'issued_by'];
protected $casts = [
'issue_date' => 'date',
'quantity' => 'decimal:2',
];
public function productionOrder()
{
return $this->belongsTo(ProductionOrder::class);
}
public function item()
{
return $this->belongsTo(Item::class);
}
public function warehouse()
{
return $this->belongsTo(Warehouse::class);
}
public function issuedBy()
{
return $this->belongsTo(\App\Models\User::class, 'issued_by');
}
}