Merge pull request #12379 from altatof/dispatch_force_qty_input

NEW : add constant DISPATCH_FORCE_QTY_INPUT
This commit is contained in:
Laurent Destailleur 2019-11-08 11:38:57 +01:00 committed by GitHub
commit 28b10e4610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -780,7 +780,7 @@ if ($id > 0 || ! empty($ref)) {
// Qty to dispatch
print '<td class="right">';
print '<input id="qty' . $suffix . '" name="qty' . $suffix . '" type="text" class="width50 right" value="' . (GETPOST('qty' . $suffix) != '' ? GETPOST('qty' . $suffix) : $remaintodispatch) . '">';
print '<input id="qty' . $suffix . '" name="qty' . $suffix . '" type="text" class="width50 right" value="' . (GETPOSTISSET('qty' . $suffix) ? GETPOST('qty' . $suffix, 'int') : (empty($conf->global->SUPPLIER_ORDER_DISPATCH_FORCE_QTY_INPUT_TO_ZERO) ? $remaintodispatch : 0)) .'">';
print '</td>';
print '<td>';