Explorar el Código

excel import/compare process exception message upgrade

master
Dukai Károly hace 3 años
padre
commit
675a806dc4
Se han modificado 2 ficheros con 14 adiciones y 1 borrados
  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 Ver fichero

} }


// 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 Ver fichero

$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;
} }

Cargando…
Cancelar
Guardar