Added material type 4 on importer
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
This commit is contained in:
@@ -273,8 +273,8 @@ class StickerMasterImporter extends Importer
|
|||||||
if (Str::length($this->data['bundle_quantity']) > 0 && (! is_numeric($this->data['bundle_quantity']) || $this->data['bundle_quantity'] <= 1)) {
|
if (Str::length($this->data['bundle_quantity']) > 0 && (! is_numeric($this->data['bundle_quantity']) || $this->data['bundle_quantity'] <= 1)) {
|
||||||
$warnMsg[] = "Bundle quantity must be greater than or equal to '2' or empty";
|
$warnMsg[] = "Bundle quantity must be greater than or equal to '2' or empty";
|
||||||
}
|
}
|
||||||
if (Str::length($this->data['material_type']) > 0 && $this->data['material_type'] != '1' && $this->data['material_type'] != '2' && $this->data['material_type'] != '3') { // ($this->data['material_type'] != null) &&
|
if (Str::length($this->data['material_type']) > 0 && $this->data['material_type'] != '1' && $this->data['material_type'] != '2' && $this->data['material_type'] != '3' && $this->data['material_type'] != '4') { // ($this->data['material_type'] != null) &&
|
||||||
$warnMsg[] = 'Material type must be 1 or 2 or 3 or empty';
|
$warnMsg[] = 'Material type must be 1 or 2 or 3 or 4 or empty';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($warnMsg)) {
|
if (empty($warnMsg)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user