From e70a89d293b3296da1c106fa9c1ee203b4956ece Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 5 Jun 2020 17:08:45 +0200 Subject: [PATCH] Auftrags-Controller: Wechselkursfeld leer lassen, wenn Kurs nicht bekannt --- js/kivi.Order.js | 2 +- templates/webpages/order/tabs/basic_data.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/kivi.Order.js b/js/kivi.Order.js index 74bd343e4..907e15bd3 100644 --- a/js/kivi.Order.js +++ b/js/kivi.Order.js @@ -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 { diff --git a/templates/webpages/order/tabs/basic_data.html b/templates/webpages/order/tabs/basic_data.html index 383f07554..94728b77c 100644 --- a/templates/webpages/order/tabs/basic_data.html +++ b/templates/webpages/order/tabs/basic_data.html @@ -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) %] -- 2.20.1