From e9d896d4a7287eb8106428c22cba8af8f888e844 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Sun, 16 Feb 2025 23:01:13 +0100 Subject: [PATCH] complete mock --- assets/js/parts/main.js | 2 +- src/Controller/DefaultController.php | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/assets/js/parts/main.js b/assets/js/parts/main.js index a823696e..4ee5a59c 100755 --- a/assets/js/parts/main.js +++ b/assets/js/parts/main.js @@ -219,7 +219,7 @@ angular console.log('customCategories', customCategories); $scope.categories = customCategories; $scope.productsFromDB = customCategories; - // $scope.recentSellings = rep.data.history; + $scope.recentSellings = rep.data.history; // festoche $scope.activeFestival.id = rep.data.lastFestival.id; $scope.activeFestival.name = rep.data.lastFestival.name; diff --git a/src/Controller/DefaultController.php b/src/Controller/DefaultController.php index 564b4760..cf2ce242 100644 --- a/src/Controller/DefaultController.php +++ b/src/Controller/DefaultController.php @@ -114,7 +114,16 @@ $user = $this->getUser(); 'categories' => $user->getGroupOfProducts(), 'products' => $user->getProducts(), // mock land - 'lastFestival' => ['id'=>1] + 'lastFestival' => ['id'=>1, + 'name'=>'le festival de mock', + 'dateCreation'=>'2025-02-16', + 'commentaire'=>'MOCK: hop le commentaire de festival', + 'chiffreAffaire'=>'1234', + 'fondDeCaisseAvant'=>'100', + 'fondDeCaisseAprès'=>'150', + 'sold'=>123 + ], + 'history' => [], ]); } #[Route('/logged/import', name: 'import')]