GetInformationDashboard
extends AbstractController
in package
Provides the mobile application with a point of sale's dashboard indicators: number of sales, customers, products, suppliers and aggregated revenue.
Table of Contents
Properties
- $entityManager : EntityManagerInterface
Methods
- __construct() : mixed
- dashboard() : JsonResponse
- Aggregates and returns the dashboard statistics for a POS.
Properties
$entityManager
private
EntityManagerInterface
$entityManager
Methods
__construct()
public
__construct(EntityManagerInterface $entityManager) : mixed
Parameters
- $entityManager : EntityManagerInterface
-
Doctrine entity manager.
dashboard()
Aggregates and returns the dashboard statistics for a POS.
public
dashboard(int $pointOfSale) : JsonResponse
Parameters
- $pointOfSale : int
-
Point-of-sale identifier.
Attributes
- #[Route]
- $path: "/api/point_of_sale/{pointOfSale}"
- $name: "api_dashboard"
- $methods: ["GET"]
Return values
JsonResponse —Counters and balances of the point of sale.