|
|
|
|
|
|
|
|
if (count($pointSale->orders)) { |
|
|
if (count($pointSale->orders)) { |
|
|
// listing commandes |
|
|
// listing commandes |
|
|
$datas[] = ['> ' . $pointSale->name]; |
|
|
$datas[] = ['> ' . $pointSale->name]; |
|
|
foreach ($pointSale->orders as $order) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*foreach ($pointSale->orders as $order) { |
|
|
$orderLine = [$order->getStrUser()]; |
|
|
$orderLine = [$order->getStrUser()]; |
|
|
|
|
|
|
|
|
foreach ($productsIndexArray as $idProduct => $indexProduct) { |
|
|
foreach ($productsIndexArray as $idProduct => $indexProduct) { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
$datas[] = $this->_lineOrderReportCSV($orderLine, $cpt - 1, true); |
|
|
$datas[] = $this->_lineOrderReportCSV($orderLine, $cpt - 1, true); |
|
|
} |
|
|
|
|
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
// total point de vente |
|
|
// total point de vente |
|
|
$totalsPointSaleArray = $this->_totalReportCSV( |
|
|
$totalsPointSaleArray = $this->_totalReportCSV( |
|
|
|
|
|
|
|
|
$productsIndexArray |
|
|
$productsIndexArray |
|
|
); |
|
|
); |
|
|
$datas[] = $this->_lineOrderReportCSV($totalsPointSaleArray, $cpt - 1, true); |
|
|
$datas[] = $this->_lineOrderReportCSV($totalsPointSaleArray, $cpt - 1, true); |
|
|
$datas[] = []; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|