";
$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