$this->addJsLib('html2pdf', 'js/libs/html2pdf/html2pdf.min.js');
$this->addJsLib('multiselect', 'js/libs/jquery/jquery.multi-select.js');
$this->addJsLib('jqueryui', 'js/libs/jquery/jquery-ui.min.js');
+ $this->addJsLib('exceljs', 'js/libs/exceljs.min.js');
$this->svgfiles[] = $this->assets . '/images/symbols/grandvision.svg';
$cdir = $this->wdir . '/commerce/';
$file = $cdir . $this->book->parametres->basketReferences;
- $this->config->basketReferences = wsUtil::excelToArrayKeyVars($file, 'Excel2007', true);
+ $refs = wsUtil::excelToArrayKeyVars($file, 'Excel2007', true);
+ $this->config->basketReferences = [];
+ foreach ($refs as $ean => $ref) {
+ $this->config->basketReferences[$ean] = $ref;
+ $this->config->basketReferences[$ean]['angle_url'] = base64_encode(file_get_contents($this->wdir . '/commerce/opt/' . $ean . '-angle.jpg'));
+ }
$odir = $cdir . '/opt/';
if (!file_exists($odir)) {