Repose sur champs identité pour les membres + facture_pdf.php -> pdf.php

This commit is contained in:
Noizette 2020-10-24 09:19:21 +02:00
parent e5ff2e8cd7
commit aeac847646
9 changed files with 18 additions and 44 deletions

View file

@ -21,37 +21,7 @@ if (!$f)
}
$tpl->assign('type', $f->type_facture);
// $cats = new Compta\Categories;
// $tpl->assign('moyens_paiement', $cats->listMoyensPaiement());
// $tpl->assign('moyen_paiement', $cats->getMoyenPaiement($f->moyen_paiement));
try
{
// if ($f->receveur_membre)
// {
// $c = $membres->get($f->receveur_id);
// foreach(['ville','code_postal','adresse'] as $v)
// {
// if($c->$v == '')
// {
// $c->$v = '[A RENSEIGNER DANS LA FICHE MEMBRE]';
// }
// }
// }
// else
// {
// $c = $client->get($f->receveur_id);
// }
$tpl->assign('facture', $f);
// $tpl->assign('client', $c);
}
catch(UserException $e)
{
$form->addError("Pas de document correspondant à cet id trouvée.");
}
$tpl->assign('facture', $f);
$tpl->assign('id', $id);
$tpl->assign('footer', $plugin->getConfig('footer')?:'');
$tpl->assign('siret_asso', $plugin->getConfig('siret_asso')?:'');