Kaynağa Gözat

[backend] Export CSV commandes : ajout colonne commentaire

dev
Guillaume 3 yıl önce
ebeveyn
işleme
e563e4f18c
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. +3
    -3
      backend/controllers/DistributionController.php

+ 3
- 3
backend/controllers/DistributionController.php Dosyayı Görüntüle

@@ -591,10 +591,10 @@ class DistributionController extends BackendController
$optionCsvExportByPiece = Producer::getConfig('option_csv_export_by_piece') ;

// produits en colonne
$productsNameArray = [''];
$productsNameArray = ['', 'Commentaire'];
$productsIndexArray = [];
$productsHasQuantity = [];
$cpt = 1;
$cpt = 2;
foreach ($productsArray as $product) {
$productsHasQuantity[$product->id] = 0;
foreach (Product::$unitsArray as $unit => $dataUnit) {
@@ -627,7 +627,7 @@ class DistributionController extends BackendController
// listing commandes
$datas[] = ['> ' . $pointSale->name];
foreach ($pointSale->orders as $order) {
$orderLine = [$order->getStrUser()];
$orderLine = [$order->getStrUser(), $order->getCommentReport()];

if($optionCsvExportByPiece) {
foreach ($order->productOrder as $productOrder) {

Yükleniyor…
İptal
Kaydet