facturation/admin/index.php

20 lines
362 B
PHP

<?php
namespace Paheko;
if ($plugin->needUpgrade()) {
$plugin->upgrade();
}
require_once __DIR__ . '/_inc.php';
$session->requireAccess($session::SECTION_ACCOUNTING, $session::ACCESS_READ);
$list = $facture->list();
$list->loadFromQueryString();
$list->setPageSize(50);
$tpl->assign(compact('list'));
$tpl->display(PLUGIN_ROOT . '/templates/index.tpl');