Skip to content
Snippets Groups Projects
Commit 7c8b252b authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Si facture n'a pas d'auteur de renseigné

parent 9eee785c
No related branches found
No related tags found
No related merge requests found
......@@ -67,16 +67,20 @@ if ($_GET["facid"] > 0)
$soc = new Societe($db, $fac->socidp);
$soc->fetch($fac->socidp);
$author = new User($db);
$author->id = $fac->user_author;
$author->fetch();
$head = facture_prepare_head($fac);
$hselected = $conf->use_preview_tabs ? 2 : false;
if ($fac->user_author)
{
$author->id = $fac->user_author;
$author->fetch();
}
$head = facture_prepare_head($fac);
$hselected = $conf->use_preview_tabs ? 2 : false;
dolibarr_fiche_head($head, $hselected, $langs->trans("Bill")." : $fac->ref");
/*
* Facture
*/
* Facture
*/
print '<table class="border" width="100%">';
$rowspan=3;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment