37 global $db, $langs, $conf, $user;
39 $langs->load(
"sendings");
40 $langs->load(
"deliveries");
45 $head[$h][0] = DOL_URL_ROOT.
"/reception/card.php?id=".$object->id;
46 $head[$h][1] = $langs->trans(
"ReceptionCard");
47 $head[$h][2] =
'reception';
50 if (empty($conf->global->MAIN_DISABLE_CONTACTS_TAB))
53 if ($object->origin ==
'commande' && $object->origin_id > 0)
56 $objectsrc->fetch($object->origin_id);
58 $nbContact = count($objectsrc->liste_contact(-1,
'internal')) + count($objectsrc->liste_contact(-1,
'external'));
59 $head[$h][0] = DOL_URL_ROOT.
"/reception/contact.php?id=".$object->id;
60 $head[$h][1] = $langs->trans(
"ContactsAddresses");
61 if ($nbContact > 0) $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbContact.
'</span>';
62 $head[$h][2] =
'contact';
73 if (!empty($object->note_private)) $nbNote++;
74 if (!empty($object->note_public)) $nbNote++;
75 $head[$h][0] = DOL_URL_ROOT.
"/reception/note.php?id=".$object->id;
76 $head[$h][1] = $langs->trans(
"Notes");
77 if ($nbNote > 0) $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbNote.
'</span>';
78 $head[$h][2] =
'note';
93 global $langs, $conf, $user;
94 $langs->load(
"receptions");
99 $head[$h][0] = DOL_URL_ROOT.
"/admin/reception_setup.php";
100 $head[$h][1] = $langs->trans(
"Reception");
101 $head[$h][2] =
'reception';
106 if (!empty($conf->global->MAIN_SUBMODULE_RECEPTION))
108 $head[$h][0] = DOL_URL_ROOT.
'/admin/reception_extrafields.php';
109 $head[$h][1] = $langs->trans(
"ExtraFields");
110 $head[$h][2] =
'attributes_reception';
114 if (!empty($conf->global->MAIN_SUBMODULE_RECEPTION))
116 $head[$h][0] = DOL_URL_ROOT.
'/admin/commande_fournisseur_dispatch_extrafields.php';
117 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
118 $head[$h][2] =
'attributeslines_reception';
Class to manage receptions.
Class to manage customers orders.
reception_admin_prepare_head()
Return array head with list of tabs to view object informations.
reception_prepare_head(Reception $object)
Prepare array with list of tabs.
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode= 'add')
Complete or removed entries into a head array (used to build tabs).