Browse Source

Export catalog extended

Alexander Musikhin 4 weeks ago
parent
commit
e20bc07827
2 changed files with 10 additions and 0 deletions
  1. 10 0
      app/Services/ExportService.php
  2. BIN
      templates/ExportCatalogTemplate.xlsx

+ 10 - 0
app/Services/ExportService.php

@@ -77,6 +77,16 @@ class ExportService
             $sheet->setCellValue('L' . $i, $product->total_price);
             $sheet->setCellValue('M' . $i, $product->manufacturer_name);
             $sheet->setCellValue('N' . $i, $product->note);
+            $sheet->setCellValue('O' . $i, $product->passport_name);
+            $sheet->setCellValue('P' . $i, $product->statement_name);
+            $sheet->setCellValue('Q' . $i, $product->service_life);
+            $sheet->setCellValue('R' . $i, $product->certificate_number);
+            $sheet->setCellValue('S' . $i, $product->certificate_date);
+            $sheet->setCellValue('T' . $i, $product->certificate_issuer);
+            $sheet->setCellValue('U' . $i, $product->certificate_type);
+            $sheet->setCellValue('V' . $i, $product->weight);
+            $sheet->setCellValue('W' . $i, $product->volume);
+            $sheet->setCellValue('X' . $i, $product->places);
             $sheet->getStyle("J{$i}:L{$i}")->getNumberFormat()->setFormatCode($sum_format);
             $i++;
         }

BIN
templates/ExportCatalogTemplate.xlsx