diff --git a/app/Filament/Resources/ProductionQuantityResource/Pages/CreateProductionQuantity.php b/app/Filament/Resources/ProductionQuantityResource/Pages/CreateProductionQuantity.php
index b2cf81dcb..88b418596 100644
--- a/app/Filament/Resources/ProductionQuantityResource/Pages/CreateProductionQuantity.php
+++ b/app/Filament/Resources/ProductionQuantityResource/Pages/CreateProductionQuantity.php
@@ -162,6 +162,7 @@ class CreateProductionQuantity extends CreateRecord
->body($e->getMessage())
->danger()
// ->persistent()
+ ->seconds(2)
->send();
return;
}
@@ -179,6 +180,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -186,6 +189,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Invalid QR')
->body("Scan the valid QR code.
(Ex: Item_Code|Serial_Number )")
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -201,6 +205,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> null,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -208,6 +214,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Choose Plant')
->body("Please select a plant first.")
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -221,6 +228,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> null,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -228,6 +237,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Choose Block')
->body("Please select a block first.")
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -241,6 +251,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> null,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -248,6 +260,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Choose Shift')
->body("Please select a shift first.")
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -261,6 +274,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> null,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -268,6 +283,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Choose Line')
->body("Please select a line first.")
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -281,12 +297,15 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> null,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
Notification::make()
->title('Please scan the production order first.')
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -302,6 +321,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> null,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -310,6 +331,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Invalid Production Order')
->body("Must contain numeric values only.")
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -324,6 +346,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> null,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -332,6 +356,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Invalid Production Order')
->body("Must contain at least 7 digits.
Must start with a non-zero digit.")
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -378,6 +403,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -385,6 +412,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Invalid Shift')
->body("Please select a valid shift.")
->danger()
+ ->seconds(2)
->send();
//$set('validationError', 'Curr.'.$currentDateTime.' (From: '.$from_dt.', To: '.$to_dt.')');
return;
@@ -400,6 +428,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -445,6 +475,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -482,6 +514,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -489,6 +523,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Plan Not Found')
->body("Please set production plan first.")
->danger()
+ ->seconds(2)
->send();
//$set('validationError', 'Curr.'.$currentDateTime.' (From: '.$from_dt.', To: '.$to_dt.')');
return;
@@ -507,6 +542,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -514,6 +551,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Invalid Shift')
->body("Please select a valid shift.")
->danger()
+ ->seconds(2)
->send();
//$set('validationError', 'Curr.'.$currentDateTime.' (From: '.$from_dt.', To: '.$to_dt.')');
return;
@@ -555,6 +593,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -562,6 +602,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Plan Not Found')
->body("Please set production plan first.")
->danger()
+ ->seconds(2)
->send();
//$set('validationError', 'Curr.'.$currentDateTime.' (From: '.$from_dt.', To: '.$to_dt.')');
return;
@@ -599,6 +640,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -606,6 +649,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Plan Not Found')
->body("Please set production plan first.")
->danger()
+ ->seconds(2)
->send();
//$set('validationError', 'Curr.'.$currentDateTime.' (From: '.$from_dt.', To: '.$to_dt.')');
return;
@@ -624,6 +668,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -631,6 +677,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Invalid Shift')
->body("Please select a valid shift.")
->danger()
+ ->seconds(2)
->send();
//$set('validationError', 'Curr.'.$currentDateTime.' (From: '.$from_dt.', To: '.$to_dt.')');
return;
@@ -650,6 +697,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -666,6 +715,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -674,6 +725,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Invalid QR')
->body("Scan the valid QR code.
(Ex: Item_Code|Serial_Number )")
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -693,6 +745,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -701,6 +755,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Invalid Item Code')
->body("Item code must contain alpha-numeric values only.")
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -714,6 +769,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -722,6 +779,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Invalid Item Code')
->body("Item code must be at least 6 digits.")
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -735,6 +793,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -743,7 +803,8 @@ class CreateProductionQuantity extends CreateRecord
->title('Invalid Serial Number')
->body("Serial Number must contain alpha-numeric values only.")
->danger()
- ->duration(800)
+ // ->duration(800)
+ ->seconds(2)
->send();
return;
}
@@ -757,6 +818,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -765,7 +828,8 @@ class CreateProductionQuantity extends CreateRecord
->title('Invalid Serial Number')
->body("Serial Number must be at least 9 digits.")
->danger()
- ->duration(800)
+ // ->duration(800)
+ ->seconds(2)
->send();
return;
}
@@ -780,6 +844,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -788,6 +854,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Invalid QR')
->body("Scan the valid QR code.
(Ex: Item_Code|Serial_Number )")
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -802,6 +869,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -825,6 +894,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -832,6 +903,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Unknown Item Code')
->body("Item code does not exist in master data.")
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -854,6 +926,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> 'Y',
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -871,6 +945,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -878,6 +954,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Duplicate Serial Number')
->body("Serial number already exist in database for choosed plant.")
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -893,6 +970,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -901,6 +980,7 @@ class CreateProductionQuantity extends CreateRecord
->title('Unknown Item Code')
->body("Item code does not exist in master data for choosed plant.")
->danger()
+ ->seconds(2)
->send();
return;
}
@@ -915,6 +995,8 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $this->recQr,
]);
@@ -924,6 +1006,7 @@ class CreateProductionQuantity extends CreateRecord
->body("Please, scan the valid QR code.")
->danger()
// ->persistent()
+ ->seconds(2)
->send();
return;
}
@@ -956,18 +1039,22 @@ class CreateProductionQuantity extends CreateRecord
'serial_number'=> null,
'success_msg'=> null,
'production_order'=> $this->prodOrder,
+ 'sap_msg_status' => null,
+ 'sap_msg_description' => null,
'operator_id'=> $operatorName,
'recent_qr' => $itemCode.' | '.$this->sNoId,
]);
Notification::make()
->title("Valid QR Found") // {$operatorName}
- ->body("Valid QR code scanned: {$this->qrData}.")
+ ->body("Valid QR code scanned:
{$this->qrData}")
->success()
// ->persistent()
+ ->seconds(2)
->send();
-
+ $formQRData = null;
+ $this->qrData = null;
}
}