36 global $langs, $conf, $user;
37 $langs->load(
"withdrawals");
42 $titleoftab =
"WithdrawalsReceipts";
43 if ($object->type ==
'bank-transfer') {
44 $titleoftab =
"BankTransferReceipts";
47 $head[$h][0] = DOL_URL_ROOT.
'/compta/prelevement/card.php?id='.$object->id;
48 $head[$h][1] = $langs->trans($titleoftab);
49 $head[$h][2] =
'prelevement';
52 $head[$h][0] = DOL_URL_ROOT.
'/compta/prelevement/factures.php?id='.$object->id;
53 $head[$h][1] = $langs->trans(
"Bills");
54 $head[$h][2] =
'invoices';
57 $head[$h][0] = DOL_URL_ROOT.
'/compta/prelevement/fiche-rejet.php?id='.$object->id;
58 $head[$h][1] = $langs->trans(
"Rejects");
59 $head[$h][2] =
'rejects';
62 $head[$h][0] = DOL_URL_ROOT.
'/compta/prelevement/fiche-stat.php?id='.$object->id;
63 $head[$h][1] = $langs->trans(
"Statistics");
64 $head[$h][2] =
'statistics';
88 if ($type ==
'bank-transfer') {
89 if (empty($conf->global->PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT)) {
93 if (empty($conf->global->PAYMENTBYBANKTRANSFER_USER)) {
97 if (empty($conf->global->PRELEVEMENT_ID_BANKACCOUNT)) {
101 if (empty($conf->global->PRELEVEMENT_USER)) {
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).
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.