74 |
{ |
{ |
75 |
$soc = new Societe($db, $fac->socidp); |
$soc = new Societe($db, $fac->socidp); |
76 |
$soc->fetch($fac->socidp); |
$soc->fetch($fac->socidp); |
77 |
|
$head = facture_prepare_head($fac); |
|
/* //laissé en commentaire 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"); |
|
|
$hselected = $h; |
|
|
$h++; |
|
|
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/info.php?facid='.$fac->id; |
|
|
$head[$h][1] = $langs->trans("Info"); |
|
|
$h++; |
|
|
*/ |
|
|
|
|
|
$head = facture_prepare_head($fac); |
|
78 |
$hselected = 2; |
$hselected = 2; |
79 |
if ($conf->use_preview_tabs) $hselected++; |
if ($conf->use_preview_tabs) $hselected++; |
80 |
if ($fac->mode_reglement_code == 'PRE') $hselected++; |
if ($fac->mode_reglement_code == 'PRE') $hselected++; |