Browse Source

Crud PointSale

ideas
Guillaume 3 years ago
parent
commit
dab3e9b126
2 changed files with 17 additions and 0 deletions
  1. +2
    -0
      src/Controller/Dashboard/DashboardAdminController.php
  2. +15
    -0
      src/Controller/PointSale/PointSaleAdminController.php

+ 2
- 0
src/Controller/Dashboard/DashboardAdminController.php View File

use App\Entity\Config\TaxRate; use App\Entity\Config\TaxRate;
use App\Entity\Config\Unit; use App\Entity\Config\Unit;
use App\Entity\Merchant\Merchant; use App\Entity\Merchant\Merchant;
use App\Entity\PointSale\PointSale;
use App\Entity\Section\Section; use App\Entity\Section\Section;
use App\Entity\Site\Page; use App\Entity\Site\Page;
use App\Entity\Ticket\Ticket; use App\Entity\Ticket\Ticket;
yield MenuItem::linkToDashboard('dashboard', 'far fa-circle'); yield MenuItem::linkToDashboard('dashboard', 'far fa-circle');


yield MenuItem::linkToCrud('tickets', 'far fa-copy', Ticket::class); yield MenuItem::linkToCrud('tickets', 'far fa-copy', Ticket::class);
yield MenuItem::linkToCrud('pointsale', 'far fa-circle', PointSale::class);
yield MenuItem::linkToCrud('page', 'far fa-copy', Page::class); yield MenuItem::linkToCrud('page', 'far fa-copy', Page::class);
yield MenuItem::subMenu('user', 'far fa-user')->setSubItems( yield MenuItem::subMenu('user', 'far fa-user')->setSubItems(
[ [

+ 15
- 0
src/Controller/PointSale/PointSaleAdminController.php View File

<?php

namespace App\Controller\PointSale;

use App\Entity\PointSale\PointSale;
use Lc\CaracoleBundle\Controller\PointSale\PointSaleAdminController as CaracPointSaleAdminController;

class PointSaleAdminController extends CaracPointSaleAdminController
{
public static function getEntityFqcn(): string
{
return PointSale::class;
}

}

Loading…
Cancel
Save