Added category in product characteristics master 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:
@@ -70,6 +70,11 @@ class ProductCharacteristicsMasterImporter extends Importer
|
|||||||
->exampleHeader('CHARACTERISTICS NAME')
|
->exampleHeader('CHARACTERISTICS NAME')
|
||||||
->example(['TEST01', 'TEST02'])
|
->example(['TEST01', 'TEST02'])
|
||||||
->rules(['required']),
|
->rules(['required']),
|
||||||
|
ImportColumn::make('category')
|
||||||
|
->label('CATEGORY')
|
||||||
|
->requiredMapping()
|
||||||
|
->exampleHeader('CATEGORY')
|
||||||
|
->example(['Open Pump', 'Submersible Pump']),
|
||||||
ImportColumn::make('inspection_type')
|
ImportColumn::make('inspection_type')
|
||||||
->label('INSPECTION TYPE')
|
->label('INSPECTION TYPE')
|
||||||
->requiredMapping()
|
->requiredMapping()
|
||||||
@@ -110,6 +115,7 @@ class ProductCharacteristicsMasterImporter extends Importer
|
|||||||
$workCenter = trim($this->data['machine']) ?? null;
|
$workCenter = trim($this->data['machine']) ?? null;
|
||||||
$charTyp = trim($this->data['characteristics_type']) ?? null;
|
$charTyp = trim($this->data['characteristics_type']) ?? null;
|
||||||
$charNam = trim($this->data['name']) ?? null;
|
$charNam = trim($this->data['name']) ?? null;
|
||||||
|
$category = trim($this->data['category']) ?? null;
|
||||||
$inspectTyp = trim($this->data['inspection_type']) ?? null;
|
$inspectTyp = trim($this->data['inspection_type']) ?? null;
|
||||||
$lower = trim($this->data['lower']) ?? null;
|
$lower = trim($this->data['lower']) ?? null;
|
||||||
$middle = trim($this->data['middle']) ?? null;
|
$middle = trim($this->data['middle']) ?? null;
|
||||||
@@ -295,6 +301,7 @@ class ProductCharacteristicsMasterImporter extends Importer
|
|||||||
'name' => $charNam,
|
'name' => $charNam,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
'category' => $category,
|
||||||
'inspection_type' => $inspectTyp,
|
'inspection_type' => $inspectTyp,
|
||||||
'lower' => $lower,
|
'lower' => $lower,
|
||||||
'middle' => $middle,
|
'middle' => $middle,
|
||||||
|
|||||||
Reference in New Issue
Block a user