Browse Source

[Backoffice] Tableau de bord

feature/export_comptable
Fab 4 years ago
parent
commit
74f4eec43f
3 changed files with 6 additions and 3 deletions
  1. +4
    -3
      ShopBundle/Repository/TicketRepository.php
  2. +1
    -0
      ShopBundle/Resources/public/sass/backend/custom.scss
  3. +1
    -0
      ShopBundle/Resources/translations/lcshop.fr.yaml

+ 4
- 3
ShopBundle/Repository/TicketRepository.php View File

return $query ; return $query ;
} }


public function findAllOpen()
public function findAllOpen($limit=0)
{ {
$query = $this->findByMerchantQuery() ; $query = $this->findByMerchantQuery() ;
$this->filterStatus($query, [Ticket::TICKET_STATUS_OPEN, Ticket::TICKET_STATUS_BEING_PROCESSED]) ;
$this->filterStatus($query, [Ticket::TICKET_STATUS_OPEN]) ;
$query->addOrderBy('e.id', 'DESC') ; $query->addOrderBy('e.id', 'DESC') ;
$query->setMaxResults($limit);
return $query->getQuery()->getResult() ; return $query->getQuery()->getResult() ;
} }


{ {
$query = $this->findByMerchantQuery() ; $query = $this->findByMerchantQuery() ;
$query->select('count(e.id)'); $query->select('count(e.id)');
$this->filterStatus($query, [Ticket::TICKET_STATUS_OPEN, Ticket::TICKET_STATUS_BEING_PROCESSED]) ;
$this->filterStatus($query, [Ticket::TICKET_STATUS_OPEN]) ;
return $query->getQuery()->getSingleScalarResult() ; return $query->getQuery()->getSingleScalarResult() ;
} }
} }

+ 1
- 0
ShopBundle/Resources/public/sass/backend/custom.scss View File

#dashboard .btn-statistic{ width: 120px; height: 70px; text-align: center; border: 1px solid black; line-height: 1rem; } #dashboard .btn-statistic{ width: 120px; height: 70px; text-align: center; border: 1px solid black; line-height: 1rem; }
#dashboard .btn-statistic small{margin-bottom: 10px; display: block;} #dashboard .btn-statistic small{margin-bottom: 10px; display: block;}
#dashboard .btn-statistic .value{display: block;} #dashboard .btn-statistic .value{display: block;}
#dashboard .btn-statistic.active{display: block;}




/* Tickets */ /* Tickets */

+ 1
- 0
ShopBundle/Resources/translations/lcshop.fr.yaml View File

Ticket: Ticket:
listMessages: Liste des messages listMessages: Liste des messages
list: Tickets ouverts list: Tickets ouverts
listLast: Derniers tickets ouverts
PointSale: PointSale:
main: Général main: Général
Merchant: Merchant:

Loading…
Cancel
Save