40 $salary =
$object->checkIfSalaryBonPrelevement();
42 $langs->loadLangs(array(
"bills",
"salaries",
"withdrawals"));
47 $titleoftab =
"WithdrawalsReceipts";
48 if (
$object->type ==
'bank-transfer') {
49 $titleoftab =
"BankTransferReceipts";
51 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/compta/prelevement/card.php', [
'id' =>
$object->id]);
52 $head[$h][1] = $langs->trans($titleoftab);
53 $head[$h][2] =
'prelevement';
57 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/compta/prelevement/requests.php', [
'id' =>
$object->id]);
58 $head[$h][1] = $langs->trans(
'Requests');
59 $head[$h][2] =
'requests';
63 $titleoftab = $langs->trans(
"Bills");
64 if (
$object->type ==
'bank-transfer') {
65 $titleoftab = $langs->trans(
"SupplierBills");
68 $titleoftab = $langs->trans(
"Salaries");
71 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/compta/prelevement/factures.php', [
'id' =>
$object->id]);
72 $head[$h][1] = $titleoftab;
73 $head[$h][2] =
'invoices';
76 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/compta/prelevement/fiche-rejet.php', [
'id' =>
$object->id]);
77 $head[$h][1] = $langs->trans(
"Rejects");
78 $head[$h][2] =
'rejects';
81 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/compta/prelevement/fiche-stat.php', [
'id' =>
$object->id]);
82 $head[$h][1] = $langs->trans(
"Statistics");
83 $head[$h][2] =
'statistics';
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $conf
The main.inc.php has been included so the following variable are now defined:
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add', $filterorigmodule='')
Complete or removed entries into a head array (used to build tabs).