mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Add min_amt field in Consumables and Accessories imports
This commit is contained in:
parent
659703bd7d
commit
d51eca20f0
|
@ -43,6 +43,7 @@ class AccessoryImporter extends ItemImporter
|
||||||
$this->log('No Matching Accessory, Creating a new one');
|
$this->log('No Matching Accessory, Creating a new one');
|
||||||
$accessory = new Accessory();
|
$accessory = new Accessory();
|
||||||
$this->item['model_number'] = $this->findCsvMatch($row, "model_number");
|
$this->item['model_number'] = $this->findCsvMatch($row, "model_number");
|
||||||
|
$this->item['min_amt'] = $this->findCsvMatch($row, "min_amt");
|
||||||
$accessory->fill($this->sanitizeItemForStoring($accessory));
|
$accessory->fill($this->sanitizeItemForStoring($accessory));
|
||||||
|
|
||||||
//FIXME: this disables model validation. Need to find a way to avoid double-logs without breaking everything.
|
//FIXME: this disables model validation. Need to find a way to avoid double-logs without breaking everything.
|
||||||
|
|
|
@ -43,6 +43,7 @@ class ConsumableImporter extends ItemImporter
|
||||||
$consumable = new Consumable();
|
$consumable = new Consumable();
|
||||||
$this->item['model_number'] = $this->findCsvMatch($row, 'model_number');
|
$this->item['model_number'] = $this->findCsvMatch($row, 'model_number');
|
||||||
$this->item['item_no'] = $this->findCsvMatch($row, 'item_number');
|
$this->item['item_no'] = $this->findCsvMatch($row, 'item_number');
|
||||||
|
$this->item['min_amt'] = $this->findCsvMatch($row, "min_amt");
|
||||||
$consumable->fill($this->sanitizeItemForStoring($consumable));
|
$consumable->fill($this->sanitizeItemForStoring($consumable));
|
||||||
//FIXME: this disables model validation. Need to find a way to avoid double-logs without breaking everything.
|
//FIXME: this disables model validation. Need to find a way to avoid double-logs without breaking everything.
|
||||||
$consumable->unsetEventDispatcher();
|
$consumable->unsetEventDispatcher();
|
||||||
|
|
Loading…
Reference in a new issue