dlc dluo are inverted
This commit is contained in:
parent
7a361a3bde
commit
e6c103733e
@ -352,8 +352,10 @@ if (empty($reshook)) {
|
||||
}
|
||||
$qty = "qtyl".$i;
|
||||
$comment = "comment".$i;
|
||||
$eatby = "dlc".$i;
|
||||
$sellby = "dluo".$i;
|
||||
// EATBY <-> DLUO see productbatch.class.php
|
||||
// SELLBY <-> DLC
|
||||
$eatby = "dluo".$i;
|
||||
$sellby = "dlc".$i;
|
||||
$batch = "batch".$i;
|
||||
$cost_price = "cost_price".$i;
|
||||
|
||||
@ -628,9 +630,11 @@ if (empty($reshook)) {
|
||||
$batch = "batch".$line_id;
|
||||
$dlc = "dlc".$line_id;
|
||||
$dluo = "dluo".$line_id;
|
||||
$eatby = GETPOST($dlc, 'alpha');
|
||||
// EATBY <-> DLUO
|
||||
$eatby = GETPOST($dluo, 'alpha');
|
||||
$eatbydate = str_replace('/', '-', $eatby);
|
||||
$sellby = GETPOST($dluo, 'alpha');
|
||||
// SELLBY <-> DLC
|
||||
$sellby = GETPOST($dlc, 'alpha');
|
||||
$sellbydate = str_replace('/', '-', $sellby);
|
||||
$line->batch = GETPOST($batch, 'alpha');
|
||||
$line->eatby = strtotime($eatbydate);
|
||||
@ -641,8 +645,7 @@ if (empty($reshook)) {
|
||||
setEventMessages($line->error, $line->errors, 'errors');
|
||||
$error++;
|
||||
}
|
||||
} else // Product no predefined
|
||||
{
|
||||
} else { // Product no predefined
|
||||
$qty = "qtyl".$line_id;
|
||||
$line->id = $line_id;
|
||||
$line->qty = GETPOST($qty, 'int');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user