set deposit percent to zero on change

This commit is contained in:
Eric Seigne 2025-02-14 09:35:57 +01:00
parent 6aa4d6a940
commit 5fd5eae3b1

View File

@ -4332,7 +4332,7 @@ class Form
if (depositPercent.length > 0) {
$("#' . $htmlname . '_deposit_percent_container").show().find("#' . $htmlname . '_deposit_percent").val(depositPercent);
} else {
$("#' . $htmlname . '_deposit_percent_container").hide();
$("#' . $htmlname . '_deposit_percent_container").hide().find("#' . $htmlname . '_deposit_percent").val(0);
}
return true;