diff --git a/APPL/FIN/fin_edit_factuur.asp b/APPL/FIN/fin_edit_factuur.asp index 369be7c53f..7fa7d07e93 100644 --- a/APPL/FIN/fin_edit_factuur.asp +++ b/APPL/FIN/fin_edit_factuur.asp @@ -225,6 +225,15 @@ var fin_btwtabel_key = oRs("fin_btwtabel_key").value; // Standaard btw tabel key <% } %> <% } %> referenceChanged(false); + +<% if (this_fin.canInvLinChange) // AAIT#38947 + { %> + if ($("table#sel_items input[id^=sum]").not(":hidden").length == 0) + { + AddItem(); + alert("yup"); + } +<% } %> }); // Settings needed by fin_edit_factuur.js diff --git a/APPL/FIN/fin_edit_factuur.js b/APPL/FIN/fin_edit_factuur.js index 1b3ea14a7e..166e074104 100644 --- a/APPL/FIN/fin_edit_factuur.js +++ b/APPL/FIN/fin_edit_factuur.js @@ -19,7 +19,7 @@ function checkInput() var filled_lines = 0; var blank_lines = 0; - $("table#sel_items input[id^=sum]").each(function() + $("table#sel_items input[id^=sum]").not(":hidden").each(function() { if (myParseFloat($(this).val()) != 0) filled_lines++;