From bc925d8fb4eb46fb020b2be8574113c1ad89263d Mon Sep 17 00:00:00 2001 From: jpb Date: Mon, 6 Jun 2022 18:03:41 +0200 Subject: [PATCH] change id to class name on input qty --- htdocs/expensereport/card.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index dd34123e188..818b3d564a6 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -2377,7 +2377,7 @@ if ($action == 'create') { // Quantity print ''; - print ''; // We must be able to enter decimal qty + print ''; // We must be able to enter decimal qty print ''; //print ''.$langs->trans('AmountHT').''; @@ -2559,7 +2559,7 @@ if ($action == 'create') { // Quantity print ''; - print ''; // We must be able to enter decimal qty + print ''; // We must be able to enter decimal qty print ''; // Picture @@ -2598,12 +2598,12 @@ if ($action == 'create') { }); /* unit price coéf calculation */ - jQuery("#input_qty, #fk_c_type_fees, #select_fk_c_exp_tax_cat, #vatrate ").change(function(event) { + jQuery(".input_qty, #fk_c_type_fees, #select_fk_c_exp_tax_cat, #vatrate ").change(function(event) { let type_fee = jQuery("#fk_c_type_fees").find(":selected").val(); let tax_cat = jQuery("#select_fk_c_exp_tax_cat").find(":selected").val(); let tva = jQuery("#vatrate").find(":selected").val(); - let qty = jQuery("#input_qty").val(); + let qty = jQuery(".input_qty").val();