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

This commit is contained in:
Laurent Destailleur 2005-12-07 02:40:37 +00:00
parent 9eee785cc0
commit 7c8b252b66

View File

@ -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;