diff --git a/htdocs/expedition/note.php b/htdocs/expedition/note.php
index 031ba85322e..0f7093fa90c 100644
--- a/htdocs/expedition/note.php
+++ b/htdocs/expedition/note.php
@@ -97,22 +97,19 @@ $form = new Form($db);
if ($id > 0 || ! empty($ref))
{
- $soc = new Societe($db);
- $soc->fetch($object->socid);
-
$head=shipping_prepare_head($object);
- dol_fiche_head($head, 'note', $langs->trans("Shipment"), 0, 'sending');
+ dol_fiche_head($head, 'note', $langs->trans("Shipment"), 0, 'sending');
- // Shipment card
- $linkback = ''.$langs->trans("BackToList").'';
-
- $morehtmlref='
';
- // Ref customer shipment
- $morehtmlref.=$form->editfieldkey("RefCustomer", '', $object->ref_customer, $object, $user->rights->expedition->creer, 'string', '', 0, 1);
- $morehtmlref.=$form->editfieldval("RefCustomer", '', $object->ref_customer, $object, $user->rights->expedition->creer, 'string', '', null, null, '', 1);
- // Thirdparty
- $morehtmlref.='
'.$langs->trans('ThirdParty') . ' : ' . $object->thirdparty->getNomUrl(1);
+ // Shipment card
+ $linkback = '
'.$langs->trans("BackToList").'';
+
+ $morehtmlref='
';
+ // Ref customer shipment
+ $morehtmlref.=$form->editfieldkey("RefCustomer", '', $object->ref_customer, $object, $user->rights->expedition->creer, 'string', '', 0, 1);
+ $morehtmlref.=$form->editfieldval("RefCustomer", '', $object->ref_customer, $object, $user->rights->expedition->creer, 'string', '', null, null, '', 1);
+ // Thirdparty
+ $morehtmlref.='
'.$langs->trans('ThirdParty') . ' : ' . $object->thirdparty->getNomUrl(1);
// Project
if (! empty($conf->projet->enabled)) {
$langs->load("projects");