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';
99 if ($type ==
'bank-transfer') {
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';
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Class to manage withdrawal receipts.
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).
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
bon_prelevement_prepare_head(BonPrelevement $object, $nbOfInvoices, $nbOfSalaryInvoice)
Return array head with list of tabs to view object information.
prelevement_prepare_head(BonPrelevement $object)
Prepare array with list of tabs.
prelevement_check_config($type='direct-debit')
Check need data to create standigns orders receipt file.