diff --git a/ChangeLog b/ChangeLog index 6cd8025ebe9..634a9081d56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -180,7 +180,8 @@ NEW: Widgets: Add widget of open opportunities NEW: Use an ajax component to swith prospection status on thidparty list NEW: Comment on survey is possible only after vote. NEW: Add partial payment reason "withholding tax" - +NEW: A new tab for reception and shipment + For developers or integrators: ------------------------------ diff --git a/htdocs/expedition/dispatch.php b/htdocs/expedition/dispatch.php index 9b08075da17..c7bbda918f3 100644 --- a/htdocs/expedition/dispatch.php +++ b/htdocs/expedition/dispatch.php @@ -25,9 +25,9 @@ */ /** - * \file htdocs/fourn/expedition/dispatch.php + * \file htdocs/expedition/dispatch.php * \ingroup expedition - * \brief Page to dispatch expediting + * \brief Page to dispatch shipments */ // Load Dolibarr environment @@ -96,7 +96,7 @@ if ($id > 0 || !empty($ref)) { } // $id is id of a purchase order. -$result = restrictedArea($user, 'expedition', $object->id, ''); +$result = restrictedArea($user, 'expedition', $object, ''); if (!isModEnabled('stock')) { accessforbidden(); @@ -150,7 +150,7 @@ if ($action == 'updatelines' && $usercancreate) { $lot = ''; $dDLUO = ''; $dDLC = ''; - if ($modebatch == "batch") { //TODO: Make imposible to input non existing batchcode + if ($modebatch == "batch") { //TODO: Make impossible to input non existing batchcode $lot = GETPOST('lot_number_'.$reg[1].'_'.$reg[2]); $dDLUO = dol_mktime(12, 0, 0, GETPOST('dluo_'.$reg[1].'_'.$reg[2].'month', 'int'), GETPOST('dluo_'.$reg[1].'_'.$reg[2].'day', 'int'), GETPOST('dluo_'.$reg[1].'_'.$reg[2].'year', 'int')); $dDLC = dol_mktime(12, 0, 0, GETPOST('dlc_'.$reg[1].'_'.$reg[2].'month', 'int'), GETPOST('dlc_'.$reg[1].'_'.$reg[2].'day', 'int'), GETPOST('dlc_'.$reg[1].'_'.$reg[2].'year', 'int')); @@ -313,7 +313,7 @@ $form = new Form($db); $formproduct = new FormProduct($db); $warehouse_static = new Entrepot($db); -$title = $langs->trans('Shipment'); +$title = $object->ref." - ".$langs->trans('ShipmentDistribution'); $help_url = 'EN:Module_Shipments|FR:Module_Expéditions|ES:Módulo_Expediciones|DE:Modul_Lieferungen'; $morejs = array('/expedition/js/lib_dispatch.js.php'); @@ -440,7 +440,6 @@ if ($id > 0 || !empty($ref)) { print '
| '; print $langs->trans('DateDeliveryPlanned'); print ' | '; - if ($action != 'editdate_livraison') { print 'id.'">'.img_edit($langs->trans('SetDeliveryDate'), 1).' | '; } @@ -460,8 +459,9 @@ if ($id > 0 || !empty($ref)) { print '