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