C'est crade mais : on peut modifier un doc en reçu et il s'affiche
This commit is contained in:
parent
0ab5fa5ad0
commit
2014dff1a1
8 changed files with 146 additions and 110 deletions
|
|
@ -20,30 +20,32 @@ if (!$f)
|
|||
throw new UserException("Ce document n'existe pas.");
|
||||
}
|
||||
|
||||
$cats = new Compta\Categories;
|
||||
$tpl->assign('moyens_paiement', $cats->listMoyensPaiement());
|
||||
$tpl->assign('moyen_paiement', $cats->getMoyenPaiement($f->moyen_paiement));
|
||||
$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);
|
||||
}
|
||||
// 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);
|
||||
// $tpl->assign('client', $c);
|
||||
}
|
||||
catch(UserException $e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue