facturation/www/admin/client.php

23 lines
423 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);
qv(['id' => 'required|numeric']);
$id = (int) qg('id');
$client = $client->get($id);
if (!$client)
{
throw new UserException("Ce client n'existe pas.");
}
$tpl->assign('docs', $facture->listUserDoc(0, $id));
$tpl->assign('client', $client);
2019-11-03 17:51:31 +01:00
$tpl->display(PLUGIN_ROOT . '/templates/client.tpl');