Bläddra i källkod

[Backoffice] Tableau de bord

feature/export_comptable
Fab 4 år sedan
förälder
incheckning
74f4eec43f
3 ändrade filer med 6 tillägg och 3 borttagningar
  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 Visa fil

@@ -29,11 +29,12 @@ class TicketRepository extends BaseRepository implements DefaultRepositoryInterf
return $query ;
}

public function findAllOpen()
public function findAllOpen($limit=0)
{
$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->setMaxResults($limit);
return $query->getQuery()->getResult() ;
}

@@ -41,7 +42,7 @@ class TicketRepository extends BaseRepository implements DefaultRepositoryInterf
{
$query = $this->findByMerchantQuery() ;
$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() ;
}
}

+ 1
- 0
ShopBundle/Resources/public/sass/backend/custom.scss Visa fil

@@ -288,6 +288,7 @@ table.products-collection-table tr.disabled{opacity: 0.5}
#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 .value{display: block;}
#dashboard .btn-statistic.active{display: block;}


/* Tickets */

+ 1
- 0
ShopBundle/Resources/translations/lcshop.fr.yaml Visa fil

@@ -70,6 +70,7 @@ group:
Ticket:
listMessages: Liste des messages
list: Tickets ouverts
listLast: Derniers tickets ouverts
PointSale:
main: Général
Merchant:

Laddar…
Avbryt
Spara