From 5a47f1f009ac31722faec2e78eef3370e289d650 Mon Sep 17 00:00:00 2001 From: NextGestion Date: Thu, 25 May 2023 16:52:15 +0100 Subject: [PATCH] Revert products to stock : No or Yes --- htdocs/fourn/facture/card.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index 3ba13ca8a91..e6fcd90d98f 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -3068,10 +3068,12 @@ if ($action == 'create') { } $selectwarehouse .= ''; + $selectyesno = array(0 => $langs->trans('No'), 1 => $langs->trans('Yes')); + print ''; $formquestion = array( - array('type' => 'checkbox', 'name' => 'revertstock', 'label' => $langs->trans('RevertProductsToStock'), 'value' => 'false'), + array('type' => 'select', 'name' => 'revertstock', 'label' => $langs->trans("RevertProductsToStock"), 'select_show_empty' => 0, 'values' => $selectyesno), array('type' => 'other', 'name' => 'idwarehouse', 'label' => $label, 'value' => $selectwarehouse, 'tdclass' => 'questionrevertstock hidden') ); }