Solved issue in panel box validation
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 1m43s
Laravel Larastan / larastan (pull_request) Failing after 3m29s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 1m43s
Laravel Larastan / larastan (pull_request) Failing after 3m29s
This commit is contained in:
@@ -147,19 +147,24 @@ public $records = [];
|
||||
|
||||
foreach ($this->checklist as $characteristicId => $value) {
|
||||
|
||||
$status = 'Ok';
|
||||
// $status = 'Ok';
|
||||
|
||||
$characteristic = ProductCharacteristicsMaster::find($characteristicId);
|
||||
|
||||
if (
|
||||
$characteristic &&
|
||||
is_numeric($value) &&
|
||||
$value >= $characteristic->lower &&
|
||||
$value <= $characteristic->upper
|
||||
) {
|
||||
$status = 'Ok';
|
||||
} else {
|
||||
$status = 'NotOk';
|
||||
if (($characteristic?->inspection_type ?? null) === 'Value') {
|
||||
if (
|
||||
$characteristic &&
|
||||
is_numeric($value) &&
|
||||
$value >= $characteristic->lower &&
|
||||
$value <= $characteristic->upper
|
||||
) {
|
||||
$status = 'Ok';
|
||||
} else {
|
||||
$status = 'NotOk';
|
||||
}
|
||||
}
|
||||
else {
|
||||
$status = $value;
|
||||
}
|
||||
|
||||
ProductionCharacteristic::create([
|
||||
|
||||
Reference in New Issue
Block a user