56 |
left_menu($menu->liste, $help_url); |
left_menu($menu->liste, $help_url); |
57 |
} |
} |
58 |
|
|
59 |
|
function facture_prepare_head($fac) |
60 |
|
{ |
61 |
|
global $langs, $conf; |
62 |
|
$h = 0; |
63 |
|
$head = array(); |
64 |
|
|
65 |
|
$head[$h][0] = DOL_URL_ROOT.'/compta/facture.php?facid='.$fac->id; |
66 |
|
$head[$h][1] = $langs->trans('CardBill'); |
67 |
|
$hselected = $h; |
68 |
|
$h++; |
69 |
|
|
70 |
|
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/contact.php?facid='.$fac->id; |
71 |
|
$head[$h][1] = $langs->trans('Contact'); |
72 |
|
$h++; |
73 |
|
|
74 |
|
if ($conf->use_preview_tabs) |
75 |
|
{ |
76 |
|
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/apercu.php?facid='.$fac->id; |
77 |
|
$head[$h][1] = $langs->trans('Preview'); |
78 |
|
$h++; |
79 |
|
} |
80 |
|
|
81 |
|
if ($fac->mode_reglement_code == 'PRE') |
82 |
|
{ |
83 |
|
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/prelevement.php?facid='.$fac->id; |
84 |
|
$head[$h][1] = $langs->trans('StandingOrders'); |
85 |
|
$h++; |
86 |
|
} |
87 |
|
|
88 |
|
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/note.php?facid='.$fac->id; |
89 |
|
$head[$h][1] = $langs->trans('Note'); |
90 |
|
$h++; |
91 |
|
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/info.php?facid='.$fac->id; |
92 |
|
$head[$h][1] = $langs->trans('Info'); |
93 |
|
$h++; |
94 |
|
|
95 |
|
return $head; |
96 |
|
} |
97 |
|
|
98 |
|
|
99 |
?> |
?> |