Auftrags-Controller: Wechselkursfeld leer lassen, wenn Kurs nicht bekannt
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 5 Jun 2020 15:08:45 +0000 (17:08 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 27 Jul 2020 13:26:42 +0000 (15:26 +0200)
js/kivi.Order.js
templates/webpages/order/tabs/basic_data.html

index 74bd343..907e15b 100644 (file)
@@ -201,7 +201,7 @@ namespace('kivi.Order', function(ns) {
           } else {
             rate_text.text('');
             rate_input.prop('disabled', false);
-            rate_input.show().val(0);
+            rate_input.show().val('');
           }
           $('#exchangerate_settings').show();
         } else {
index 383f075..94728b7 100644 (file)
@@ -68,7 +68,7 @@
               [% IF currency_id==INSTANCE_CONF.get_currency_id || SELF.order.exchangerate %]
                 [% L.input_tag('order.exchangerate_as_null_number', '', size="15", class="reformat_number numeric", style='display:none', disabled=1) %]
               [% ELSE %]
-                [% L.input_tag('order.exchangerate_as_null_number', 0, size="15", class="reformat_number numeric") %]
+                [% L.input_tag('order.exchangerate_as_null_number', '', size="15", class="reformat_number numeric") %]
               [% END %]
               [% INSTANCE_CONF.default_currency %]
               [% L.hidden_tag('old_currency_id', currency_id) %]