diff --git a/app/Filament/Widgets/InvoiceDataChart.php b/app/Filament/Widgets/InvoiceDataChart.php index f41e0b7..dc195e7 100644 --- a/app/Filament/Widgets/InvoiceDataChart.php +++ b/app/Filament/Widgets/InvoiceDataChart.php @@ -223,7 +223,11 @@ class InvoiceDataChart extends ChartWidget elseif ($selectedDistribution == 'Challan') { $totalInvoices = InvoiceDataValidation::where('plant_id', $selectedPlant) - ->where('distribution_channel_desc', $selectedDistribution) + //->where('distribution_channel_desc', $selectedDistribution) + ->where(function ($query) { + $query->whereNull('distribution_channel_desc') + ->orWhere('distribution_channel_desc', ''); + }) ->whereBetween('document_date', [$startDate, $endDate]) ->distinct('document_number') ->pluck('document_number')