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

+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PurchaseOrderItem extends Model
{
use HasFactory;
protected $fillable = ['purchase_order_id', 'item_id', 'quantity', 'rate', 'total_amount', 'quantity_received'];
protected $casts = [
'quantity' => 'decimal:2',
'rate' => 'decimal:2',
'total_amount' => 'decimal:2',
'quantity_received' => 'decimal:2',
];
public function purchaseOrder()
{
return $this->belongsTo(PurchaseOrder::class);
}
public function item()
{
return $this->belongsTo(Item::class);
}
}