Removed chart in Production Quantity report page
This commit is contained in:
@@ -19,8 +19,13 @@ use Route;
|
||||
|
||||
class CreateProductionQuantity extends CreateRecord
|
||||
{
|
||||
public $plantId;
|
||||
|
||||
public $lineId;
|
||||
protected static string $resource = ProductionQuantityResource::class;
|
||||
|
||||
protected static string $view = 'filament.resources.invoice-validation-resource.pages.hourly-quantity-table';
|
||||
|
||||
// public function getTitle(): string
|
||||
// {
|
||||
// return 'Create'; // This should display in the breadcrumb as "Production Quantities > Create"
|
||||
@@ -32,6 +37,7 @@ class CreateProductionQuantity extends CreateRecord
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
public function boot(): void
|
||||
{
|
||||
// dd('Current Route: ' . Route::currentRouteName());
|
||||
@@ -88,12 +94,12 @@ class CreateProductionQuantity extends CreateRecord
|
||||
// return MaxWidth::Full;
|
||||
// }
|
||||
|
||||
protected function getFooterWidgets(): array
|
||||
{
|
||||
return [
|
||||
ItemOverview::make(),
|
||||
];
|
||||
}
|
||||
// protected function getFooterWidgets(): array
|
||||
// {
|
||||
// return [
|
||||
// ItemOverview::make(),
|
||||
// ];
|
||||
// }
|
||||
|
||||
protected function getRedirectUrl(): string
|
||||
{
|
||||
@@ -148,7 +154,7 @@ class CreateProductionQuantity extends CreateRecord
|
||||
// $this->sNoId = $formData['serial_number'] ?? null;
|
||||
$this->prodOrder = $formData['production_order'] ?? null;
|
||||
$this->recQr = $formData['recent_qr'] ?? null;
|
||||
|
||||
$this->dispatch('plant-line-updated', $this->pId,$this->lId);
|
||||
} catch (\Exception $e) {
|
||||
//dd('Error parsing form data:', $e->getMessage(), $formValues);
|
||||
Notification::make()
|
||||
@@ -960,6 +966,8 @@ class CreateProductionQuantity extends CreateRecord
|
||||
->success()
|
||||
// ->persistent()
|
||||
->send();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -969,6 +977,10 @@ class CreateProductionQuantity extends CreateRecord
|
||||
// For example:
|
||||
$model = ProductionQuantity::create($formValues);
|
||||
|
||||
// dd('Production Updated Event Dispatched');
|
||||
|
||||
$this->dispatch('productionUpdated');
|
||||
|
||||
// // Optionally, you can emit an event or perform a redirect after saving
|
||||
// $this->emit('formSaved', $model->id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user