Fix: Si facture n'a pas d'auteur de renseigné
This commit is contained in:
parent
9eee785cc0
commit
7c8b252b66
@ -67,16 +67,20 @@ if ($_GET["facid"] > 0)
|
|||||||
$soc = new Societe($db, $fac->socidp);
|
$soc = new Societe($db, $fac->socidp);
|
||||||
$soc->fetch($fac->socidp);
|
$soc->fetch($fac->socidp);
|
||||||
$author = new User($db);
|
$author = new User($db);
|
||||||
$author->id = $fac->user_author;
|
if ($fac->user_author)
|
||||||
$author->fetch();
|
{
|
||||||
$head = facture_prepare_head($fac);
|
$author->id = $fac->user_author;
|
||||||
$hselected = $conf->use_preview_tabs ? 2 : false;
|
$author->fetch();
|
||||||
|
}
|
||||||
|
|
||||||
|
$head = facture_prepare_head($fac);
|
||||||
|
$hselected = $conf->use_preview_tabs ? 2 : false;
|
||||||
dolibarr_fiche_head($head, $hselected, $langs->trans("Bill")." : $fac->ref");
|
dolibarr_fiche_head($head, $hselected, $langs->trans("Bill")." : $fac->ref");
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Facture
|
* Facture
|
||||||
*/
|
*/
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
$rowspan=3;
|
$rowspan=3;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user