From 0fb1b26928ff3b3b7db496776c12131c3bf05eb7 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 11 Sep 2026 11:54:26 +0530 Subject: [PATCH] Added plant in where condition in invoice --- app/Livewire/InvoiceDataTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Livewire/InvoiceDataTable.php b/app/Livewire/InvoiceDataTable.php index f6bbc6f..0a0098e 100644 --- a/app/Livewire/InvoiceDataTable.php +++ b/app/Livewire/InvoiceDataTable.php @@ -846,7 +846,7 @@ class InvoiceDataTable extends Component return; } - $categoryExist = Item::where('code', $itemCode)->first(); + $categoryExist = Item::where('code', $itemCode)->where('plant_id', $this->plantId)->first(); if($categoryExist?->category == 'Panel Box'){