Просмотр исходного кода

excel import/compare process exception message upgrade

master
Dukai Károly 3 лет назад
Родитель
Сommit
675a806dc4
2 измененных файлов: 14 добавлений и 1 удалений
  1. +13
    -0
      modules/custom/arlista/src/Factory/ProductFactory.php
  2. +1
    -1
      modules/custom/arlista/src/Factory/SpreadSheetFactory.php

+ 13
- 0
modules/custom/arlista/src/Factory/ProductFactory.php Просмотреть файл

} }


// Axico Id is set from existing product data // Axico Id is set from existing product data
if(empty($product->getAxicoId())){
$result['status'] = false;
$result['totalCompared'] = 0;
$result['newProduct'] = 0;
$result['changed'] = 0;
$result['unchanged'] = 0;
$result['message'] = 'A ' . $product->getFabricId() . ' terméknek nincs axico cikkszáma az aktiv adatbázisban. Forduljon a fejlesztőhöz!';
break;
}
$axicoIdWarranty = $this->axicoIdWarrantyFactory->findByProductAxicoIdName($product->getAxicoId()); $axicoIdWarranty = $this->axicoIdWarrantyFactory->findByProductAxicoIdName($product->getAxicoId());
$product->setWarranty($axicoIdWarranty->getDefaultWarranty()); $product->setWarranty($axicoIdWarranty->getDefaultWarranty());



+ 1
- 1
modules/custom/arlista/src/Factory/SpreadSheetFactory.php Просмотреть файл

$cleanSheetSettingName = strtolower(preg_replace("/[^A-Za-z0-9 ]/", '', $sheetSetting->getName())); $cleanSheetSettingName = strtolower(preg_replace("/[^A-Za-z0-9 ]/", '', $sheetSetting->getName()));


if (strcmp($cleanWorkSheetTitle, $cleanSheetSettingName) != 0) { if (strcmp($cleanWorkSheetTitle, $cleanSheetSettingName) != 0) {
$result['extracted'][$sheetSetting->getIndex()]['validation'] = ['A munkalap neve nem megfelő. Ellenőrizze a konfigurációkat! Munkalap száma: ' . $sheetSetting->getIndex()];
$result['extracted'][$sheetSetting->getIndex()]['validation'] = ['A munkalap neve nem megfelő. Ellenőrizze a konfigurációkat! Munkalap száma: ' . ($sheetSetting->getIndex() + 1)];


return $result; return $result;
} }

Загрузка…
Отмена
Сохранить