From 974025b5e11cfb00a8c7a687175ddf4802dd3273 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 20 Jun 2014 12:03:41 +0200 Subject: [PATCH] Fix: Date format --- htdocs/expedition/fiche.php | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/htdocs/expedition/fiche.php b/htdocs/expedition/fiche.php index 45208e77dbe..9a52ce47788 100644 --- a/htdocs/expedition/fiche.php +++ b/htdocs/expedition/fiche.php @@ -144,7 +144,7 @@ if ($action == 'add') $j++; $batch="batchl".$i."_".$j; $qty = "qtyl".$i.'_'.$j; - + } $batch_line[$i]['detail']=$sub_qty; $batch_line[$i]['qty']=$subtotalqty; @@ -316,7 +316,7 @@ else if ($action == 'settrackingnumber' || $action == 'settrackingurl' if ($action == 'settrueWeight') { $object->trueWeight = trim(GETPOST('trueWeight','int')); $object->weight_units = GETPOST('weight_units','int'); - } + } if ($action == 'settrueWidth') $object->trueWidth = trim(GETPOST('trueWidth','int')); if ($action == 'settrueHeight'){ $object->trueHeight = trim(GETPOST('trueHeight','int')); @@ -863,7 +863,7 @@ if ($action == 'create') if (($line->product_type == 1 && empty($conf->global->STOCK_SUPPORTS_SERVICES)) || $defaultqty < 0) $defaultqty=0; } - if (empty($conf->productbatch->enabled) || ! ($product->hasbatch() and is_object($product->stock_warehouse[GETPOST('entrepot_id','int')]))) + if (empty($conf->productbatch->enabled) || ! ($product->hasbatch() and is_object($product->stock_warehouse[GETPOST('entrepot_id','int')]))) { // Quantity to send print ''; @@ -874,7 +874,7 @@ if ($action == 'create') } else print $langs->trans("NA"); print ''; - + // Stock if (! empty($conf->stock->enabled)) { @@ -901,9 +901,9 @@ if ($action == 'create') } print ''; } - + print "\n"; - + // Show subproducts of product if (! empty($conf->global->PRODUIT_SOUSPRODUITS) && $line->fk_product > 0) { @@ -936,7 +936,7 @@ if ($action == 'create') print ''; print ''; print ''; - + print ''; print ''; print $langs->trans("DetailBatchFormat", dol_print_date($dbatch->eatby,"day"), dol_print_date($dbatch->sellby,"day"), $dbatch->batch, $dbatch->qty); @@ -1148,16 +1148,16 @@ else if ($id || $ref) } else { - print $object->date_delivery ? dol_print_date($object->date_delivery,'dayhourtext') : ' '; + print $object->date_delivery ? dol_print_date($object->date_delivery,'dayhour') : ' '; } print ''; print ''; // Weight print ''.$form->editfieldkey("Weight",'trueWeight',$object->trueWeight,$object,$user->rights->expedition->creer).''; - + if($action=='edittrueWeight') { - + print '
'; print ''; print ''; @@ -1167,12 +1167,12 @@ else if ($id || $ref) print ' '; print ' '; print '
'; - + } else { print $object->trueWeight; print ($object->trueWeight && $object->weight_units!='')?' '.measuring_units_string($object->weight_units,"weight"):''; - } + } if ($totalWeight > 0) { @@ -1191,7 +1191,7 @@ else if ($id || $ref) // Height print ''.$form->editfieldkey("Height",'trueHeight',$object->trueHeight,$object,$user->rights->expedition->creer).''; if($action=='edittrueHeight') { - + print '
'; print ''; print ''; @@ -1201,15 +1201,15 @@ else if ($id || $ref) print ' '; print ' '; print '
'; - + } else { print $object->trueHeight; print ($object->trueHeight && $object->height_units!='')?' '.measuring_units_string($object->height_units,"size"):''; - + } - - + + print ''; // Depth @@ -1431,7 +1431,7 @@ else if ($id || $ref) } // Batch number managment - if (! empty($conf->productbatch->enabled)) { + if (! empty($conf->productbatch->enabled)) { if (isset($lines[$i]->detail_batch) ) { print ''; $detail = '';