removed logic in panel box inspection stock #1297
@@ -288,11 +288,11 @@ class PanelBoxInspectionStock extends Page
|
|||||||
{
|
{
|
||||||
$parts = explode('/', $itemId);
|
$parts = explode('/', $itemId);
|
||||||
|
|
||||||
if (count($parts) < 3) {
|
if (count($parts) < 4) {
|
||||||
|
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Invalid QR Format')
|
->title('Invalid QR Format')
|
||||||
->body('Expected format: plantcode/itemcode/yearmm/serialnumber (Or) plantcode/panelboxcode/serialnumber')
|
->body('Expected format: plantcode/itemcode/yearmm/serialnumber')
|
||||||
->danger()
|
->danger()
|
||||||
->send();
|
->send();
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
@@ -310,10 +310,10 @@ class PanelBoxInspectionStock extends Page
|
|||||||
$itemCode = $panelBoxCode;
|
$itemCode = $panelBoxCode;
|
||||||
$serialNumber = $panelBoxSerialNo;
|
$serialNumber = $panelBoxSerialNo;
|
||||||
|
|
||||||
if (strlen($serialNumber) > 30) {
|
if (strlen($serialNumber) > 15) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Invalid Serial Number')
|
->title('Invalid Serial Number')
|
||||||
->body("Serial number cannot be greater than 30 characters. Current length: " . strlen($panelBoxSerialNo))
|
->body("Serial number cannot be greater than 15 characters. Current length: " . strlen($panelBoxSerialNo))
|
||||||
->danger()
|
->danger()
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user