From 7bd6f0338eda3d48351d8eaca6634811859338f1 Mon Sep 17 00:00:00 2001 From: atm-lena Date: Thu, 18 Aug 2022 12:17:16 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20la=20quantit=C3=A9=20maximum=20par?= =?UTF-8?q?=20produit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/mrp/mo_production.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/mrp/mo_production.php b/htdocs/mrp/mo_production.php index 28075a5c463..83c512c050f 100644 --- a/htdocs/mrp/mo_production.php +++ b/htdocs/mrp/mo_production.php @@ -1014,6 +1014,8 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea if (in_array($action, array('consumeorproduce', 'consumeandproduceall'))) { $i = 1; print ''."\n"; + $maxQty = 1; + print ''; print ''; // Ref print ''.$langs->trans("ToConsume").''; @@ -1332,6 +1334,8 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea if (in_array($action, array('consumeorproduce', 'consumeandproduceall'))) { print ''."\n"; + $maxQty = 1; + print ''; print ''; print ''.$langs->trans("ToProduce").''; $preselected = (GETPOSTISSET('qtytoproduce-'.$line->id.'-'.$i) ? GETPOST('qtytoproduce-'.$line->id.'-'.$i) : max(0, $line->qty - $alreadyproduced));