diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php
index f88e6dfd834..2ab27988333 100644
--- a/htdocs/fourn/facture/paiement.php
+++ b/htdocs/fourn/facture/paiement.php
@@ -409,6 +409,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
}
function callForResult(imgId)
{
+ console.log("callForResult Calculate total of payment");
var json = {};
var form = $("#payment_form");
@@ -445,6 +446,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
}
});
}
+ callForResult();
$("#payment_form").find("input.amount").change(function() {
callForResult();
});
@@ -690,10 +692,10 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
if (!empty($conf->use_javascript_ajax))
print img_picto("Auto fill", 'rightarrow', "class='AutoFillAmout' data-rowname='".$namef."' data-value='".($sign * $remaintopay)."'");
print '';
- print '';
+ print ''; // class is requied to be used by javascript callForResult();
} else {
print '';
- print '';
+ print ''; // class is requied to be used by javascript callForResult();
}
print "";