From 28556227467d48e1c82792b52651e47c01024538 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 12 May 2025 19:28:56 +0530 Subject: [PATCH] Added uom column into items model and hasMany relation to productionQuantities --- app/Models/Item.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Models/Item.php b/app/Models/Item.php index e46a13621..fdba5bfc0 100644 --- a/app/Models/Item.php +++ b/app/Models/Item.php @@ -15,6 +15,7 @@ class Item extends Model 'code', 'description', 'hourly_quantity', + 'uom', ]; public function plant(): BelongsTo @@ -26,4 +27,9 @@ class Item extends Model { return $this->hasMany(StickerMaster::class, 'item_id', 'id'); } + + public function productionQuantities() + { + return $this->hasMany(ProductionQuantity::class); + } }