diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php
index b183092972e..ea061b157ce 100644
--- a/htdocs/fourn/commande/dispatch.php
+++ b/htdocs/fourn/commande/dispatch.php
@@ -397,7 +397,7 @@ if ($action == 'confirm_deleteline' && $confirm == 'yes' && $user->rights->fourn
$qty = $supplierorderdispatch->qty;
$entrepot = $supplierorderdispatch->fk_entrepot;
$product = $supplierorderdispatch->fk_product;
- $price = GETPOST('price');
+ $price = price2num(GETPOST('price', 'alpha'), 'MU');
$comment = $supplierorderdispatch->comment;
$eatby = $supplierorderdispatch->eatby;
$sellby = $supplierorderdispatch->sellby;
diff --git a/htdocs/reception/card.php b/htdocs/reception/card.php
index 607efb9606b..07ddf19805c 100644
--- a/htdocs/reception/card.php
+++ b/htdocs/reception/card.php
@@ -328,8 +328,6 @@ if (empty($reshook)) {
$sellby = "dluo".$i;
$batch = "batch".$i;
- $timeFormat = '%d/%m/%Y';
-
if (GETPOST($qty, 'int') > 0 || (GETPOST($qty, 'int') == 0 && $conf->global->RECEPTION_GETS_ALL_ORDER_PRODUCTS)) {
$ent = "entl".$i;
@@ -354,7 +352,6 @@ if (empty($reshook)) {
$eatbydate = str_replace('/', '-', $eatby);
$sellbydate = str_replace('/', '-', $sellby);
-
$ret = $object->addline($entrepot_id, GETPOST($idl, 'int'), GETPOST($qty, 'int'), $array_options[$i], GETPOST($comment, 'alpha'), strtotime($eatbydate), strtotime($sellbydate), GETPOST($batch, 'alpha'));
if ($ret < 0) {
setEventMessages($object->error, $object->errors, 'errors');
@@ -958,6 +955,7 @@ if ($action == 'create') {
if ($numAsked) {
print '
';
print '| '.$langs->trans("Description").' | ';
+ print ''.$langs->trans("Comment").' | ';
print ''.$langs->trans("QtyOrdered").' | ';
print ''.$langs->trans("QtyReceived").' | ';
print ''.$langs->trans("QtyToReceive");
@@ -1056,18 +1054,22 @@ if ($action == 'create') {
print " | \n";
}
+ // Comment
+ //$defaultcomment = 'Line create from order line id '.$line->id;
+ $defaultcomment = '';
+ print '';
+ print '';
+ print ' | ';
+
// Qty
print ''.$line->qty;
- print 'id.'\' />';
- print '';
+ print '';
print '';
print ' | ';
$qtyProdCom = $line->qty;
// Qty already received
print '';
-
-
$quantityDelivered = $object->receptions[$line->id];
print $quantityDelivered;
print '';
@@ -1137,8 +1139,8 @@ if ($action == 'create') {
print ' | | ';
}
}
- print "
\n";
}
+ print "\n";
//Display lines extrafields
if (is_array($extralabelslines) && count($extralabelslines) > 0) {
@@ -1584,7 +1586,7 @@ if ($action == 'create') {
// Product/Service
print ''.$langs->trans("Products").' | ';
// Comment
- print ''.$langs->trans("Description").' | ';
+ print ''.$langs->trans("Comment").' | ';
// Qty
print ''.$langs->trans("QtyOrdered").' | ';
if ($origin && $origin_id > 0) {
@@ -1747,9 +1749,9 @@ if ($action == 'create') {
}
if ($action == 'editline' && $lines[$i]->id == $line_id) {
- print ' '.$lines[$i]->comment.' | ';
+ print ' | ';
} else {
- print ''.$lines[$i]->comment.' | ';
+ print ''.dol_escape_htmltag($lines[$i]->comment).' | ';
}
@@ -1778,7 +1780,7 @@ if ($action == 'create') {
$htmltext = $langs->trans("DateValidation").' : '.(empty($receptionline_var['date_valid']) ? $langs->trans("Draft") : dol_print_date($receptionline_var['date_valid'], 'dayhour'));
if (!empty($conf->stock->enabled) && $receptionline_var['warehouse'] > 0) {
$warehousestatic->fetch($receptionline_var['warehouse']);
- $htmltext .= '
'.$langs->trans("From").' : '.$warehousestatic->getNomUrl(1);
+ $htmltext .= '
'.$langs->trans("From").' : '.$warehousestatic->getNomUrl(1, '', 0, 1);
}
print ' '.$form->textwithpicto('', $htmltext, 1);
}