44 |
$fac->info($_GET["facid"]); |
$fac->info($_GET["facid"]); |
45 |
$soc = new Societe($db, $fac->socidp); |
$soc = new Societe($db, $fac->socidp); |
46 |
$soc->fetch($fac->socidp); |
$soc->fetch($fac->socidp); |
|
|
|
|
/* //laissé pour test tache 4984 |
|
|
$h = 0; |
|
|
|
|
|
$head[$h][0] = DOL_URL_ROOT.'/compta/facture.php?facid='.$fac->id; |
|
|
$head[$h][1] = $langs->trans("CardBill"); |
|
|
$h++; |
|
|
|
|
|
if ($conf->use_preview_tabs) |
|
|
{ |
|
|
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/apercu.php?facid='.$fac->id; |
|
|
$head[$h][1] = $langs->trans("Preview"); |
|
|
$h++; |
|
|
} |
|
|
|
|
|
if ($fac->mode_reglement_code == 'PRE') |
|
|
{ |
|
|
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/prelevement.php?facid='.$fac->id; |
|
|
$head[$h][1] = $langs->trans("StandingOrders"); |
|
|
$h++; |
|
|
} |
|
|
|
|
|
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/note.php?facid='.$fac->id; |
|
|
$head[$h][1] = $langs->trans("Note"); |
|
|
$h++; |
|
|
|
|
|
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/info.php?facid='.$fac->id; |
|
|
$head[$h][1] = $langs->trans("Info"); |
|
|
$hselected = $h; |
|
|
$h++; |
|
|
*/ |
|
|
|
|
47 |
$head = facture_prepare_head($fac); |
$head = facture_prepare_head($fac); |
48 |
$hselected = 3; |
$hselected = 3; |
49 |
if ($conf->use_preview_tabs) $hselected++; |
if ($conf->use_preview_tabs) $hselected++; |