diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php
index 7449e4d1502..181e8b89a59 100644
--- a/htdocs/expedition/card.php
+++ b/htdocs/expedition/card.php
@@ -1330,7 +1330,7 @@ if ($action == 'create')
{
//var_dump($dbatch);
$batchStock = + $dbatch->qty; // To get a numeric
- $deliverableQty = min($quantityToBeDelivered,$batchStock);
+ $deliverableQty = min($quantityToBeDelivered, $batchStock);
print '
';
print ' | ';
print '';
@@ -1399,7 +1399,7 @@ if ($action == 'create')
if ($stock_warehouse->real > 0)
{
$stock = + $stock_warehouse->real; // Convert it to number
- $deliverableQty = min($quantityToBeDelivered,$stock);
+ $deliverableQty = min($quantityToBeDelivered, $stock);
$deliverableQty = max(0, $deliverableQty);
// Quantity to send
print ' |
';
@@ -1492,7 +1492,7 @@ if ($action == 'create')
{
//var_dump($dbatch);
$batchStock = + $dbatch->qty; // To get a numeric
- $deliverableQty = min($quantityToBeDelivered,$batchStock);
+ $deliverableQty = min($quantityToBeDelivered, $batchStock);
if ($deliverableQty < 0) $deliverableQty = 0;
print '
| ';
print '';
@@ -1580,7 +1580,7 @@ if ($action == 'create')
//$line->fetch_optionals($line->id);
$line->array_options = array_merge($line->array_options, $srcLine->array_options);
print ' |
';
- print $line->showOptionals($extrafieldsline, 'edit', array('style'=>$bc[$var], 'colspan'=>$colspan),$indiceAsked);
+ print $line->showOptionals($extrafieldsline, 'edit', array('style'=>$bc[$var], 'colspan'=>$colspan), $indiceAsked);
print '
';
}
@@ -1984,7 +1984,7 @@ elseif ($id || $ref)
// Other attributes
$parameters = array('colspan' => ' colspan="3"');
- $reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
+ $reshook=$hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
print "";
@@ -2190,8 +2190,8 @@ elseif ($id || $ref)
else
{
print "";
- if ($lines[$i]->product_type == Product::TYPE_SERVICE) $text = img_object($langs->trans('Service'),'service');
- else $text = img_object($langs->trans('Product'),'product');
+ if ($lines[$i]->product_type == Product::TYPE_SERVICE) $text = img_object($langs->trans('Service'), 'service');
+ else $text = img_object($langs->trans('Product'), 'product');
if (! empty($lines[$i]->label)) {
$text.= ' '.$lines[$i]->label.'';
@@ -2268,7 +2268,7 @@ elseif ($id || $ref)
print ' | ' . $formproduct->selectLotStock('', 'batchl'.$line_id.'_0', '', 1, 0, $lines[$i]->fk_product). ' | ';
print '';
}
- else if (! empty($conf->stock->enabled))
+ elseif (! empty($conf->stock->enabled))
{
if ($lines[$i]->fk_product > 0)
{
@@ -2284,7 +2284,7 @@ elseif ($id || $ref)
print ' - ' . $langs->trans("NA") . ' | ';
print '';
}
- else if (count($lines[$i]->details_entrepot) > 1)
+ elseif (count($lines[$i]->details_entrepot) > 1)
{
print '';
foreach ($lines[$i]->details_entrepot as $detail_entrepot)
@@ -2336,7 +2336,7 @@ elseif ($id || $ref)
$entrepot->fetch($lines[$i]->entrepot_id);
print $entrepot->getNomUrl(1);
}
- else if (count($lines[$i]->details_entrepot) > 1)
+ elseif (count($lines[$i]->details_entrepot) > 1)
{
$detail = '';
foreach ($lines[$i]->details_entrepot as $detail_entrepot)