diff --git a/ChangeLog b/ChangeLog index 9a0e3d99955..d6c8c51fd25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ English Dolibarr ChangeLog ***** ChangeLog for 3.4 compared to 3.3.2 ***** For users: +- New: Add link to autofill/reset with quantity to ship when creating a + delivery receipt. - New: Event into calendar use different colors for different users. - New: Support revenue stamp onto invoices. - New: Add a tab "consumption" on thirdparties to list products bought/sells. diff --git a/htdocs/expedition/fiche.php b/htdocs/expedition/fiche.php index 51d19ff2fa6..de3107b663f 100644 --- a/htdocs/expedition/fiche.php +++ b/htdocs/expedition/fiche.php @@ -1,10 +1,10 @@ - * Copyright (C) 2005-2010 Laurent Destailleur + * Copyright (C) 2005-2013 Laurent Destailleur * Copyright (C) 2005 Simon TOSSER * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2011-2012 Juanjo Menent - * Copyright (C) 2013 Florian Henry + * Copyright (C) 2013 Florian Henry * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -616,7 +616,10 @@ if ($action == 'create') // Ref client print ''; - print $langs->trans('RefCustomer').''; + if ($origin == 'commande') print $langs->trans('RefCustomerOrder'); + else if ($origin == 'propal') print $langs->trans('RefCustomerOrder'); + else print $langs->trans('RefCustomer'); + print ''; print $object->ref_client; print ''; print ''; @@ -654,18 +657,18 @@ if ($action == 'create') // Weight print ''; print $langs->trans("Weight"); - print ''; + print ''; print $formproduct->select_measuring_units("weight_units","weight",GETPOST('weight_units','int')); print ''; print $langs->trans("Width"); - print ' '; + print ' '; print $formproduct->select_measuring_units("size_units","size"); print ''; print $langs->trans("Height"); - print ''; + print ''; print ''; print $langs->trans("Depth"); - print ''; + print ''; print ''; // Delivery method @@ -690,12 +693,36 @@ if ($action == 'create') /* * Lignes de commandes - * - */ - print '
'; - + */ + //$lines = $object->fetch_lines(1); $numAsked = count($object->lines); + + print ''; + + + print '
'; + print '
'; + /* Lecture des expeditions deja effectuees */ $object->loadExpeditions(); @@ -706,7 +733,10 @@ if ($action == 'create') print ''; print ''; print ''; - print ''; + print ''; if (! empty($conf->stock->enabled)) { print ''; @@ -780,13 +810,16 @@ if ($action == 'create') } // Qty - print ''; + print ''; $qtyProdCom=$line->qty; // Qty already sent print ''; $quantityAsked = $line->qty; @@ -803,13 +836,13 @@ if ($action == 'create') } // Quantity to send - print ''; // Stock @@ -867,9 +900,13 @@ if ($action == 'create') $indiceAsked++; } - print ''; print "
'.$langs->trans("Description").''.$langs->trans("QtyOrdered").''.$langs->trans("QtyShipped").''.$langs->trans("QtyToShip").''.$langs->trans("QtyToShip"); + print '
('.$langs->trans("Fill").''; + print ' / '.$langs->trans("Reset").')'; + print '
'.$langs->trans("Warehouse").' / '.$langs->trans("Stock").''.$line->qty.''.$line->qty; + print ''; + print ''; $quantityDelivered = $object->expeditions[$line->id]; print $quantityDelivered; + print ''; print ''; + print ''; if ($line->product_type == 0 || ! empty($conf->global->STOCK_SUPPORTS_SERVICES)) { print ''; - print ''; + print ''; } - else print '0'; + else print $langs->trans("NA"); print '

"; - print ''; + + print '
'; + + print ''; + + print '
'; } else {