39 $salary =
$object->checkIfSalaryBonPrelevement();
41 $langs->loadLangs(array(
"bills",
"withdrawals"));
46 $titleoftab =
"WithdrawalsReceipts";
47 if (
$object->type ==
'bank-transfer') {
48 $titleoftab =
"BankTransferReceipts";
51 $head[$h][0] = DOL_URL_ROOT.
'/compta/prelevement/card.php?id='.
$object->id;
52 $head[$h][1] = $langs->trans($titleoftab);
53 $head[$h][2] =
'prelevement';
56 $titleoftab = $langs->trans(
"Bills");
57 if (
$object->type ==
'bank-transfer') {
58 $titleoftab = $langs->trans(
"SupplierBills");
61 $titleoftab = $langs->trans(
"Salaries");
64 $head[$h][0] = DOL_URL_ROOT.
'/compta/prelevement/factures.php?id='.
$object->id;
65 $head[$h][1] = $titleoftab;
66 $head[$h][2] =
'invoices';
69 $head[$h][0] = DOL_URL_ROOT.
'/compta/prelevement/fiche-rejet.php?id='.
$object->id;
70 $head[$h][1] = $langs->trans(
"Rejects");
71 $head[$h][2] =
'rejects';
74 $head[$h][0] = DOL_URL_ROOT.
'/compta/prelevement/fiche-stat.php?id='.
$object->id;
75 $head[$h][1] = $langs->trans(
"Statistics");
76 $head[$h][2] =
'statistics';
100 if ($type ==
'bank-transfer') {
130 global $langs,
$conf;
135 $head[$h][0] = DOL_URL_ROOT.
'/compta/prelevement/create.php?type=bank-transfer';
136 $head[$h][1] = ($nbOfInvoices <= 0 ? $langs->trans(
"Invoices") : $langs->trans(
"Invoices").
'<span class="badge marginleftonlyshort">'.$nbOfInvoices.
'</span>');
137 $head[$h][2] =
'invoice';
142 $head[$h][0] = DOL_URL_ROOT.
"/compta/prelevement/create.php?type=bank-transfer&sourcetype=salary";
143 $head[$h][1] = ($nbOfSalaryInvoice <= 0 ? $langs->trans(
"Salaries") : $langs->trans(
"Salaries").
'<span class="badge marginleftonlyshort">'.$nbOfSalaryInvoice.
'</span>');
144 $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 a Dolibarr global constant string value.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
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.