Added remark text box in check panel check list
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s

This commit is contained in:
dhanabalan
2026-09-11 12:25:02 +05:30
parent 0fb1b26928
commit e00e987941
2 changed files with 33 additions and 1 deletions

View File

@@ -32,6 +32,8 @@ public $records = [];
public bool $selectForNotOk = false;
public $remark;
// public $skipChecklistValidation = false;
// protected $listeners = ['focus-item-id' => 'handleFocus', 'trigger-create' => 'doCreate',];
@@ -83,6 +85,18 @@ public $records = [];
}
}
if($this->selectForNotOk){
if (empty($this->remark) || $this->remark == '') {
Notification::make()
->title('Remark Mandatory')
->body("Remark can't be empty!")
->danger()
->send();
return;
}
}
$item = Item::where('code', $this->data['item_id'])->first();
if (! $item) {
@@ -350,6 +364,7 @@ public $records = [];
'status' => $status,
'inspection_status' => $finalInspectionStatus ?? null,
'inspection_lot_number' => $this->data['inspection_lot_number'] ?? null,
'remark' => $this->remark ?? null,
'created_by' => $this->data['created_by'] ?? null,
'updated_by' => $this->data['updated_by'] ?? null,
]);
@@ -393,6 +408,7 @@ public $records = [];
$mail->send(new PanelBoxNotOkAlert(
$plantName,
$code ?? null,
$this->remark ?? null,
$this->data['serial_number'] ?? null,
$this->data['panel_box_supplier'] ?? null,
$notOkCharacteristics