diff --git a/admin/index.php b/admin/index.php index 0096801..a0acb18 100644 --- a/admin/index.php +++ b/admin/index.php @@ -12,6 +12,7 @@ $session->requireAccess($session::SECTION_ACCOUNTING, $session::ACCESS_READ); $list = $facture->list(); $list->loadFromQueryString(); +$list->setPageSize(50); $tpl->assign(compact('list')); diff --git a/lib/Facture.php b/lib/Facture.php index 28c1df8..0776728 100644 --- a/lib/Facture.php +++ b/lib/Facture.php @@ -352,11 +352,11 @@ class Facture 'select' => sprintf('CASE WHEN receveur_membre THEN %s ELSE c.nom END', $id_field), ], 'receveur_adresse' => [ - 'label' => 'Son adresse', + 'label' => 'Adresse', 'select' => 'CASE WHEN receveur_membre THEN u.adresse ELSE c.adresse END', ], 'receveur_ville' => [ - 'label' => 'Sa ville', + 'label' => 'Ville', 'select' => 'CASE WHEN receveur_membre THEN u.ville ELSE c.ville END', ], 'date_emission' => [ @@ -391,6 +391,7 @@ class Facture $list = new DynamicList($columns, $tables); $list->orderBy('date_emission', true); + $list->setCount('COUNT(f.id)'); $currency = Config::getInstance()->monnaie; @@ -420,7 +421,6 @@ class Facture } }); - $list->setPageSize(1000); return $list; } diff --git a/templates/index.tpl b/templates/index.tpl index 94093b5..fd673cb 100644 --- a/templates/index.tpl +++ b/templates/index.tpl @@ -33,6 +33,7 @@ +{$list->getHTMLPagination()|raw}

Export de la liste :