Updated isi_model column value validation logic
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Laravel Larastan / larastan (pull_request) Failing after 4m14s
Laravel Pint / pint (pull_request) Failing after 4m21s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Laravel Larastan / larastan (pull_request) Failing after 4m14s
Laravel Pint / pint (pull_request) Failing after 4m21s
This commit is contained in:
@@ -237,7 +237,7 @@ class MotorTestingMasterImporter extends Importer
|
|||||||
$plantCod = trim($this->data['plant']);
|
$plantCod = trim($this->data['plant']);
|
||||||
$iCode = trim($this->data['item']);
|
$iCode = trim($this->data['item']);
|
||||||
$sCode = trim($this->data['subassembly_code']);
|
$sCode = trim($this->data['subassembly_code']);
|
||||||
$isiModel = (trim($this->data['isi_model']) == '1') ? true : false;
|
$isiModel = trim($this->data['isi_model']);
|
||||||
$phase = trim($this->data['phase']);
|
$phase = trim($this->data['phase']);
|
||||||
$kw = trim($this->data['kw']);
|
$kw = trim($this->data['kw']);
|
||||||
$hp = trim($this->data['hp']);
|
$hp = trim($this->data['hp']);
|
||||||
@@ -289,13 +289,8 @@ class MotorTestingMasterImporter extends Importer
|
|||||||
} elseif (! $iCode) {
|
} elseif (! $iCode) {
|
||||||
$warnMsg[] = 'Item code not found for choosed plant';
|
$warnMsg[] = 'Item code not found for choosed plant';
|
||||||
} else {
|
} else {
|
||||||
// if (Str::length($isiModel) <= 0 || $isiModel == "0" || $isiModel == "1") {
|
$isiModel = (Str::length($isiModel) == 1 && ctype_alnum($isiModel) && ($isiModel == '1' || $isiModel == 'Y' || $isiModel == 'y')) ? true : false;
|
||||||
// $warnMsg[] = "Invalid ISI Model found";
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// $isiModel = ($isiModel == "1");
|
|
||||||
// }
|
|
||||||
if (Str::length($phase) <= 0 || ($phase != 'Single' && $phase != 'Three')) {// !is_string($phase) ||
|
if (Str::length($phase) <= 0 || ($phase != 'Single' && $phase != 'Three')) {// !is_string($phase) ||
|
||||||
$warnMsg[] = 'Invalid phase found';
|
$warnMsg[] = 'Invalid phase found';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user