38 $salary = $object->checkIfSalaryBonPrelevement();
40 $langs->loadLangs(array(
"bills",
"withdrawals"));
45 $titleoftab =
"WithdrawalsReceipts";
46 if ($object->type ==
'bank-transfer') {
47 $titleoftab =
"BankTransferReceipts";
50 $head[$h][0] = DOL_URL_ROOT.
'/compta/prelevement/card.php?id='.$object->id;
51 $head[$h][1] = $langs->trans($titleoftab);
52 $head[$h][2] =
'prelevement';
55 $titleoftab = $langs->trans(
"Bills");
56 if ($object->type ==
'bank-transfer') {
57 $titleoftab = $langs->trans(
"SupplierBills");
60 $titleoftab = $langs->trans(
"Salaries");
63 $head[$h][0] = DOL_URL_ROOT.
'/compta/prelevement/factures.php?id='.$object->id;
64 $head[$h][1] = $titleoftab;
65 $head[$h][2] =
'invoices';
68 $head[$h][0] = DOL_URL_ROOT.
'/compta/prelevement/fiche-rejet.php?id='.$object->id;
69 $head[$h][1] = $langs->trans(
"Rejects");
70 $head[$h][2] =
'rejects';
73 $head[$h][0] = DOL_URL_ROOT.
'/compta/prelevement/fiche-stat.php?id='.$object->id;
74 $head[$h][1] = $langs->trans(
"Statistics");
75 $head[$h][2] =
'statistics';
129 global $langs, $conf;
134 $head[$h][0] = DOL_URL_ROOT.
'/compta/prelevement/create.php?type=bank-transfer';
135 $head[$h][1] = ($nbOfInvoices <= 0 ? $langs->trans(
"Invoices") : $langs->trans(
"Invoices").
'<span class="badge marginleftonlyshort">'.$nbOfInvoices.
'</span>');
136 $head[$h][2] =
'invoice';
141 $head[$h][0] = DOL_URL_ROOT.
"/compta/prelevement/create.php?type=bank-transfer&sourcetype=salary";
142 $head[$h][1] = ($nbOfSalaryInvoice <= 0 ? $langs->trans(
"Salaries") : $langs->trans(
"Salaries").
'<span class="badge marginleftonlyshort">'.$nbOfSalaryInvoice.
'</span>');
143 $head[$h][2] =
'salary';
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).