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 DeliveryNoteItem extends Model
{
use HasFactory;
protected $fillable = ['delivery_note_id', 'sales_order_item_id', 'item_id', 'quantity_delivered'];
protected $casts = ['quantity_delivered' => 'decimal:2'];
public function deliveryNote()
{
return $this->belongsTo(DeliveryNote::class);
}
public function salesOrderItem()
{
return $this->belongsTo(SalesOrderItem::class);
}
public function item()
{
return $this->belongsTo(Item::class);
}
}