瀏覽代碼

Export catalog extended

Alexander Musikhin 4 周之前
父節點
當前提交
e20bc07827
共有 2 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      app/Services/ExportService.php
  2. 二進制
      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++;
         }

二進制
templates/ExportCatalogTemplate.xlsx