diff --git a/htdocs/admin/tools/listevents.php b/htdocs/admin/tools/listevents.php index 6d553f1b236..204ac36ea03 100644 --- a/htdocs/admin/tools/listevents.php +++ b/htdocs/admin/tools/listevents.php @@ -182,7 +182,8 @@ if ($result) $formquestion=array(); print $form->formconfirm($_SERVER["PHP_SELF"].'?noparam=noparam', $langs->trans('PurgeAuditEvents'), $langs->trans('ConfirmPurgeAuditEvents'),'confirm_purge',$formquestion,'no',1); } - + + print '
'; print ''; print ''; print_liste_field_titre($langs->trans("Date"),$_SERVER["PHP_SELF"],"e.dateevent","","",'align="left"',$sortfield,$sortorder); @@ -195,7 +196,6 @@ if ($result) // Lignes des champs de filtres - print ''; print ''; print ''; @@ -222,7 +222,6 @@ if ($result) print ''; print "\n"; - print ''; $var=True; @@ -283,7 +282,7 @@ if ($result) if ($usefilter) print ''; else print ''; } - print "
'.$form->select_date($date_start,'date_start',0,0,0,'',1,0,1).$form->select_date($date_end,'date_end',0,0,0,'',1,0,1).'
'.$langs->trans("NoEventFoundWithCriteria").'
'.$langs->trans("NoEventOrNoAuditSetup").'
"; + print ""; $db->free($result); if ($num) diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index ffc453d395c..e72af4de601 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -888,11 +888,11 @@ if ($action == 'create') } else { - print ''; + print ''; print ' '; - print ''; - - print ''; + print ''; + + print ''; print img_warning().' '.$langs->trans("NoProductToShipFoundIntoStock", $staticwarehouse->libelle); } } diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index 5863161a995..b6ba93fe91e 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -654,11 +654,11 @@ class Expedition extends CommonObject { // line without batch detail - // We decrement stock of product (and sub-products) -> update table llx_product_stock (key of this table is fk_product+fk_entrepot) and add a movement record - $result=$mouvS->livraison($user, $obj->fk_product, $obj->fk_entrepot, $obj->qty, $obj->subprice, $langs->trans("ShipmentValidatedInDolibarr",$numref)); - if ($result < 0) { - $error++; break; - } + // We decrement stock of product (and sub-products) -> update table llx_product_stock (key of this table is fk_product+fk_entrepot) and add a movement record + $result=$mouvS->livraison($user, $obj->fk_product, $obj->fk_entrepot, $obj->qty, $obj->subprice, $langs->trans("ShipmentValidatedInDolibarr",$numref)); + if ($result < 0) { + $error++; break; + } } else { @@ -859,7 +859,7 @@ class Expedition extends CommonObject { // $value['q']=qty to move // $value['id_batch']=id into llx_product_batch of record to move - //var_dump($value); + //var_dump($value); $linebatch = new ExpeditionLineBatch($this->db); $ret=$linebatch->fetchFromStock($value['id_batch']); // load serial, sellby, eatby