diff --git a/app/Http/Controllers/ArticleController.php b/app/Http/Controllers/ArticleController.php index b7730884..642e96c5 100755 --- a/app/Http/Controllers/ArticleController.php +++ b/app/Http/Controllers/ArticleController.php @@ -322,7 +322,7 @@ class ArticleController extends Controller $csvContent = "IdArticolo,Titolo,DataPubblicazione,Ean13,rank3M,rank6M,rank1Y,totVen,totVenUltimoMese,totVenUltimi6Mesi,totVenUltimoAnno,totVenUltimi2Anni,UltimoOrdine,misure\n"; foreach ($articoliVenduti as $articoloVenduto) { - $csvContent .= "{$articoloVenduto->idArticolo},{$articoloVenduto->Titolo},{$articoloVenduto->DataPubblicazione},{$articoloVenduto->rank3M},{$articoloVenduto->rank6M},{$articoloVenduto->rank1Y},{$articoloVenduto->totVen},{$articoloVenduto->totVenUltimoMese},{$articoloVenduto->totVenUltimi6Mesi},{$articoloVenduto->totVenUltimoAnno},{$articoloVenduto->ultimoOrdine},{$articoloVenduto->misure}\n"; + $csvContent .= "{$articoloVenduto->idArticolo},{$articoloVenduto->Titolo},{$articoloVenduto->DataPubblicazione},{$articoloVenduto->rank3M},{$articoloVenduto->rank6M},{$articoloVenduto->rank1Y},{$articoloVenduto->totVen},{$articoloVenduto->venduti3mesi},{$articoloVenduto->venduti6mesi},{$articoloVenduto->venduti1anno},{$articoloVenduto->ultimoOrdine},{$articoloVenduto->misure}\n"; } $response->setContent($csvContent); @@ -354,10 +354,9 @@ class ArticleController extends Controller 'rank3M' => $articoloVenduto->rank3M, 'rank6M' => $articoloVenduto->rank6M, 'rank1Y' => $articoloVenduto->rank1Y, - //'vLastM' => $articoloVenduto->totVenUltimoMese, - //'vLast6M' => $articoloVenduto->totVenUltimi6Mesi, - //'vLastY' => $articoloVenduto->totVenUltimoAnno, - //'vLast2Y' => $articoloVenduto->totVenUltimi2Anni, + 'vLast3M' => $articoloVenduto->venduti3mesi, + 'vLast6M' => $articoloVenduto->venduti6mesi, + 'vLastY' => $articoloVenduto->venduti1anno, 'dataUltimoOrdine' => $articoloVenduto->ultimoOrdine, ]; });