Update card.php
This commit is contained in:
parent
65629711d0
commit
a0c9cf2d8d
@ -717,6 +717,16 @@ if (empty($reshook)) {
|
|||||||
unset($_POST[$qty]);
|
unset($_POST[$qty]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { // both product batch and stock are not activated.
|
||||||
|
$qty = "qtyl".$line_id;
|
||||||
|
$line->id = $line_id;
|
||||||
|
$line->qty = GETPOST($qty, 'int');
|
||||||
|
$line->entrepot_id = 0;
|
||||||
|
if ($line->update($user) < 0) {
|
||||||
|
setEventMessages($line->error, $line->errors, 'errors');
|
||||||
|
$error++;
|
||||||
|
}
|
||||||
|
unset($_POST[$qty]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Product no predefined
|
// Product no predefined
|
||||||
@ -2252,6 +2262,16 @@ if ($action == 'create') {
|
|||||||
print '<td></td>';
|
print '<td></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
} else { // both product batch and stock are not activated.
|
||||||
|
print '<!-- case edit 6 -->';
|
||||||
|
print '<tr>';
|
||||||
|
// Qty to ship or shipped
|
||||||
|
print '<td><input class="qtyl" name="qtyl'.$line_id.'" id="qtyl'.$line_id.'" type="text" size="4" value="'.$lines[$i]->qty_shipped.'"></td>';
|
||||||
|
// Warehouse source
|
||||||
|
print '<td></td>';
|
||||||
|
// Batch number managment
|
||||||
|
print '<td></td>';
|
||||||
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</table></td>';
|
print '</table></td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user