Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / acctranscorrections / assistant_for_wrong_taxkeys.html
index 430f0fc..2336683 100644 (file)
@@ -1,8 +1,6 @@
 [%- USE T8 %]
 [% USE HTML %][% USE LxERP %]
-<body>
-
- <p><div class="listtop">[% title %]</div></p>
+<h1>[% title %]</h1>
 
  <p>
   [% 'The following transaction contains wrong taxkeys:' | $T8 %]
  <p>
   [% 'This could have happened for two reasons:' | $T8 %]
 
-  [% 'The first reason is that Lx-Office contained a bug which resulted in the wrong taxkeys being recorded for transactions in which two entries are posted for the same chart with different taxkeys.' | $T8 %]
+  [% 'The first reason is that kivitendo contained a bug which resulted in the wrong taxkeys being recorded for transactions in which two entries are posted for the same chart with different taxkeys.' | $T8 %]
+
+  [% 'The second reason is that kivitendo allowed the user to enter the tax amount manually regardless of the taxkey used.' | $T8 %]
 
-  [% 'The second reason is that Lx-Office allowed the user to enter the tax amount manually regardless of the taxkey used.' | $T8 %]
+  [% 'The third reason is that wrong (taxkey) settings for the credit / debit CSV-import were used.' | $T8 %]
 
   [% 'Such entries cannot be exported into the DATEV format and have to be fixed as well.' | $T8 %]
  </p>
   </p>
  </form>
 
- <script type="text/javascript" src="js/jquery.js"></script>
  <script type="text/javascript">
   <!--
     function enable_fix_button_maybe() {
-      var all_set = true;
-      $("[name='fixes[].taxkey']").each(function () {
-        var val = $(this).attr('value');
-        if (val == '')
-          all_set = false;
-      });
-
-      $("#fix_transaction_button").attr('disabled', !all_set);
+      $("#fix_transaction_button").prop('disabled', $("[name='fixes[].taxkey'][value='']").size() != 0);
     }
     -->
  </script>
-
-</body>
-</html>