facturation/www/admin/facture.php

30 lines
602 B
PHP
Raw Normal View History

2019-11-02 17:53:27 +01:00
<?php
namespace Garradin;
require_once __DIR__ . '/_inc.php';
$session->requireAccess('compta', Membres::DROIT_ACCES);
use Garradin\Membres;
$membres = new Membres;
qv(['id' => 'required|numeric']);
$id = (int) qg('id');
$f = $facture->get($id);
if (!$f)
{
throw new UserException("Ce document n'existe pas.");
}
$tpl->assign('type', $f->type_facture);
$tpl->assign('facture', $f);
2019-11-02 17:53:27 +01:00
$tpl->assign('id', $id);
$tpl->assign('footer', $plugin->getConfig('footer')?:'');
$tpl->assign('siret_asso', $plugin->getConfig('siret_asso')?:'');
2019-11-02 17:53:27 +01:00
2019-11-03 17:51:31 +01:00
$tpl->display(PLUGIN_ROOT . '/templates/facture.tpl');