moving ean column to the right place

This commit is contained in:
Marion Muszynski 2017-02-08 14:34:56 +01:00
parent dc7775ca89
commit 89759dfc68

View File

@ -314,8 +314,8 @@ if(Tools::getValue('action') == 'getOrderForm' && ( ( $id_category = Tools::getV
if ($type == 4) { if ($type == 4) {
$lastColumn = 'M'; $lastColumn = 'M';
$letter_product_ref_interne = 'B'; $letter_product_ean = 'B';
$letter_product_ean = 'C'; $letter_product_ref_interne = 'C';
$letter_product_name = 'D'; $letter_product_name = 'D';
$letter_product_attribute_name = 'E'; $letter_product_attribute_name = 'E';
$letter_product_ht = 'F'; $letter_product_ht = 'F';
@ -369,8 +369,8 @@ if(Tools::getValue('action') == 'getOrderForm' && ( ( $id_category = Tools::getV
if ($type == 4) { if ($type == 4) {
$lastColumn = 'L'; $lastColumn = 'L';
$letter_product_ref_interne = 'B'; $letter_product_ean = 'B';
$letter_product_ean = 'C'; $letter_product_ref_interne = 'C';
$letter_product_name = 'D'; $letter_product_name = 'D';
//$letter_product_attribute_name = 'E'; //$letter_product_attribute_name = 'E';
$letter_product_ht = 'E'; $letter_product_ht = 'E';
@ -710,13 +710,14 @@ if(Tools::getValue('action') == 'getOrderForm' && ( ( $id_category = Tools::getV
$activeSheet->getStyle($firstColumn.$i)->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER); $activeSheet->getStyle($firstColumn.$i)->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER);
$activeSheet->getStyle($firstColumn.$i)->applyFromArray($borders_style); $activeSheet->getStyle($firstColumn.$i)->applyFromArray($borders_style);
$activeSheet->SetCellValue($letter_product_ean.$i, $lang['EAN']);
$activeSheet->getStyle($letter_product_ean.$i)->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER);
$activeSheet->getStyle($letter_product_ean.$i)->applyFromArray($borders_style);
$activeSheet->SetCellValue($letter_product_ref_interne.$i, $lang['Reference BB']); $activeSheet->SetCellValue($letter_product_ref_interne.$i, $lang['Reference BB']);
$activeSheet->getStyle($letter_product_ref_interne.$i)->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER); $activeSheet->getStyle($letter_product_ref_interne.$i)->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER);
$activeSheet->getStyle($letter_product_ref_interne.$i)->applyFromArray($borders_style); $activeSheet->getStyle($letter_product_ref_interne.$i)->applyFromArray($borders_style);
$activeSheet->SetCellValue($letter_product_ean.$i, $lang['EAN']);
$activeSheet->getStyle($letter_product_ean.$i)->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER);
$activeSheet->getStyle($letter_product_ean.$i)->applyFromArray($borders_style);
$activeSheet->SetCellValue($letter_product_name.$i, $lang['Product Name']); $activeSheet->SetCellValue($letter_product_name.$i, $lang['Product Name']);
$activeSheet->getStyle($letter_product_name.$i)->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER); $activeSheet->getStyle($letter_product_name.$i)->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER);
@ -902,11 +903,12 @@ if(Tools::getValue('action') == 'getOrderForm' && ( ( $id_category = Tools::getV
$activeSheet->getStyle($firstColumn.$i)->getNumberFormat()->setFormatCode( PHPExcel_Style_NumberFormat::FORMAT_TEXT ); $activeSheet->getStyle($firstColumn.$i)->getNumberFormat()->setFormatCode( PHPExcel_Style_NumberFormat::FORMAT_TEXT );
$activeSheet->getStyle($firstColumn.$i)->applyFromArray($borders_style); $activeSheet->getStyle($firstColumn.$i)->applyFromArray($borders_style);
$activeSheet->SetCellValue($letter_product_ean.$i, $values['line']['product_ean13']);
$activeSheet->getStyle($letter_product_ean.$i)->applyFromArray($borders_style);
$activeSheet->SetCellValue($letter_product_ref_interne.$i, $values['line']['product_reference']); $activeSheet->SetCellValue($letter_product_ref_interne.$i, $values['line']['product_reference']);
$activeSheet->getStyle($letter_product_ref_interne.$i)->applyFromArray($borders_style); $activeSheet->getStyle($letter_product_ref_interne.$i)->applyFromArray($borders_style);
$activeSheet->SetCellValue($letter_product_ean.$i, $values['line']['product_ean13']);
$activeSheet->getStyle($letter_product_ean.$i)->applyFromArray($borders_style);
$activeSheet->SetCellValue($letter_product_name.$i, $values['line']['product_name_base']); $activeSheet->SetCellValue($letter_product_name.$i, $values['line']['product_name_base']);
$activeSheet->getStyle($letter_product_name.$i)->applyFromArray($borders_style); $activeSheet->getStyle($letter_product_name.$i)->applyFromArray($borders_style);