complete mock

This commit is contained in:
Tykayn 2025-02-16 23:01:13 +01:00 committed by tykayn
parent 63895ee93c
commit e9d896d4a7
2 changed files with 11 additions and 2 deletions

View file

@ -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;

View file

@ -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')]