diff --git a/htdocs/admin/translation.php b/htdocs/admin/translation.php index 1ecd204be98..43f2953ccda 100644 --- a/htdocs/admin/translation.php +++ b/htdocs/admin/translation.php @@ -204,7 +204,7 @@ if ($mode == 'overwrite') print_liste_field_titre($langs->trans("Language").' (en_US, es_MX, ...)',$_SERVER["PHP_SELF"],'lang,transkey','',$param,'',$sortfield,$sortorder); print_liste_field_titre($langs->trans("Key"),$_SERVER["PHP_SELF"],'transkey','',$param,'',$sortfield,$sortorder); print_liste_field_titre($langs->trans("NewTranslationStringToShow"),$_SERVER["PHP_SELF"],'transvalue','',$param,'',$sortfield,$sortorder); - if (! empty($conf->multicompany->enabled) && !$user->entity) print_liste_field_titre($langs->trans("Entity"),$_SERVER["PHP_SELF"],'entity,transkey','',$param,'',$sortfield,$sortorder); + //if (! empty($conf->multicompany->enabled) && !$user->entity) print_liste_field_titre($langs->trans("Entity"),$_SERVER["PHP_SELF"],'entity,transkey','',$param,'',$sortfield,$sortorder); print '
| '.$langs->trans("Description").' | '; + print ''; + if ($family == 'create') print $langs->trans("AutomaticCreation"); + elseif ($family == 'classify') print $langs->trans("AutomaticClassification"); + else print $langs->trans("Description"); + print ' | '; print ''.$langs->trans("Status").' | '; print "'.$langs->trans("DateCreation").' | '; print ''.$langs->trans("DateDeliveryPlanned").' | '; print ''.$langs->trans("QtyShipped").' | '; - if ($conf->livraison_bon->enabled) + if (! empty($conf->stock->enabled)) + { + print ''.$langs->trans("Warehouse").' | '; + } + if (! empty($conf->livraison_bon->enabled)) { print ''.$langs->trans("DeliveryOrder").' | '; //print ''.$langs->trans("QtyReceived").' | '; @@ -309,6 +315,18 @@ function show_list_sending_receive($origin,$origin_id,$filter='') // Qty shipped print ''.$objp->qty_shipped.' | '; + // Warehouse + if (! empty($conf->stock->enabled)) + { + print ''; + if ($objp->warehouse_id > 0) + { + $warehousestatic->fetch($objp->warehouse_id); + print $warehousestatic->getNomUrl(1); + } + print ' | '; + } + // Informations on receipt if (! empty($conf->livraison_bon->enabled)) { diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index 62fdcd89dc1..1267783e256 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -1352,6 +1352,8 @@ else if ($id || $ref) $morehtmlref .= $form->form_project($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->socid, $object->fk_project, 'none', 0, 0, 0, 1); } } else { + // We don't have project on shipment, so we will use the project or source object instead + // TODO Add project on shipment $morehtmlref .= ' : '; if (! empty($objectsrc->fk_project)) { $proj = new Project($db); @@ -1398,7 +1400,7 @@ else if ($id || $ref) // Date creation print '
| '.$langs->trans("DateCreation").' | '; - print ''.dol_print_date($object->date_creation,"day")." | \n"; + print ''.dol_print_date($object->date_creation,"dayhour")." | \n"; print '||||
| '.$langs->trans("Customer").' | '; print ''.$soc->getNomUrl(1).' | '; print "||
| '.$langs->trans("RefOrder").' | '; + print '|||
| '.$langs->trans("RefOrder").' | '; $order=new Commande($db); $order->fetch($expedition->origin_id); print ''; @@ -410,21 +476,16 @@ else { $propal=new Propal($db); $propal->fetch($expedition->origin_id); - print ' | ||
| '.$langs->trans("RefProposal").' | '; + print '|||
| '.$langs->trans("RefProposal").' | '; print ''; print $propal->getNomUrl(1,'expedition'); print " | \n"; print '||
| '.$langs->trans("RefCustomer").' | '; - print ''.$object->ref_customer." | \n"; - print '||
| '.$langs->trans("DateCreation").' | '; - print ''.dol_print_date($object->date_creation,'daytext')." | \n"; + print '||
| '.$langs->trans("DateCreation").' | '; + print ''.dol_print_date($object->date_creation,'dayhour')." | \n"; print '||
| '.$langs->trans("NotePublic").' | '; print ''; print nl2br($object->note_public); - /*$doleditor = new DolEditor('note_public', $object->note_public, '', 80, 'dolibarr_notes', 'In', 0, false, true, ROWS_3, 70); - print $doleditor->Create(1);*/ print " | ||
| '.$langs->trans("NotePrivate").' | '; print ''; print nl2br($object->note_private); - /*$doleditor = new DolEditor('note_pprivate', $object->note_private, '', 80, 'dolibarr_notes', 'In', 0, false, true, ROWS_3, 70); - print $doleditor->Create(1);*/ print " | ||
| '.$langs->trans("Status").' | '; + /*print '|||
| '.$langs->trans("Status").' | '; print ''.$object->getLibStatut(4)." | \n"; - print '||