From cce6ee49590099fefc86955dc1760ddd85a3dd51 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Fri, 29 Apr 2022 10:43:00 +0200 Subject: [PATCH] Fix ricalcola totale in fase di importazione tra documenti --- include/common/importa.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/common/importa.php b/include/common/importa.php index 45724429c..6a4317300 100755 --- a/include/common/importa.php +++ b/include/common/importa.php @@ -591,7 +591,7 @@ echo ' let totale_qta = 0; $("input[id*=qta_]").each(function() { - let qta = ($(this).val()).toEnglish(); + let qta = $(this).val().toEnglish(); let r = $(this).attr("id").replace("qta_", ""); if (!$("#checked_" + r).is(":checked") || isNaN(qta)) { @@ -626,8 +626,6 @@ echo ' controllaMagazzino(); } - ricalcolaTotale(); - $(document).ready(function(){ if(input("id_ritenuta_acconto").get()) { $("#calcolo_ritenuta_acconto").prop("required", true); @@ -644,6 +642,7 @@ echo ' input("calcolo_ritenuta_acconto").set(""); } }); + ricalcolaTotale(); }); $("#import_all").click(function(){