From ced91466509a2d6c98386d64be2658d95fb5f9a4 Mon Sep 17 00:00:00 2001 From: Koen Reefman Date: Tue, 7 Feb 2017 14:08:17 +0000 Subject: [PATCH] AAIT#38947 Bij wijzigen / in behandeling nemen van factuur zonder factuurregels, wordt nu automatisch lege regel aangemaakt svn path=/Website/trunk/; revision=32732 --- APPL/FIN/fin_edit_factuur.asp | 9 +++++++++ APPL/FIN/fin_edit_factuur.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) 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++;