2019-11-02 17:53:27 +01:00
|
|
|
<?php
|
|
|
|
|
2023-08-01 22:56:38 +02:00
|
|
|
namespace Paheko;
|
2019-11-02 17:53:27 +01:00
|
|
|
|
2023-11-03 14:53:50 +01:00
|
|
|
if ($plugin->needUpgrade()) {
|
|
|
|
$plugin->upgrade();
|
|
|
|
}
|
2019-11-02 17:53:27 +01:00
|
|
|
require_once __DIR__ . '/_inc.php';
|
|
|
|
|
2021-04-11 14:25:59 +02:00
|
|
|
$session->requireAccess($session::SECTION_ACCOUNTING, $session::ACCESS_READ);
|
2019-11-02 17:53:27 +01:00
|
|
|
|
|
|
|
|
2021-12-17 13:47:23 +01:00
|
|
|
$list = $facture->list();
|
|
|
|
$list->loadFromQueryString();
|
2024-01-12 11:30:37 +01:00
|
|
|
$list->setPageSize(50);
|
2019-11-02 17:53:27 +01:00
|
|
|
|
2021-12-17 13:47:23 +01:00
|
|
|
$tpl->assign(compact('list'));
|
2019-11-02 17:53:27 +01:00
|
|
|
|
2023-11-03 14:53:50 +01:00
|
|
|
$tpl->display(PLUGIN_ROOT . '/templates/index.tpl');
|