From 766ed2a62209f558c5fc3befd7f82a4622afba99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 14 Oct 2014 17:51:53 +0200 Subject: [PATCH] PriecSource: Numerische Vergleiche im Template stinken --- templates/webpages/oe/price_sources_dialog.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/webpages/oe/price_sources_dialog.html b/templates/webpages/oe/price_sources_dialog.html index 263cfd627..c8b85c67e 100644 --- a/templates/webpages/oe/price_sources_dialog.html +++ b/templates/webpages/oe/price_sources_dialog.html @@ -29,7 +29,7 @@ [%- IF price_source.record_item.active_price_source != price.source %] [% L.button_tag('kivi.io.update_price_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\')', LxERP.t8('Select')) %] -[%- ELSIF price_source.record_item.sellprice != price.price %] +[%- ELSIF price_source.record_item.sellprice * 1 != price.price * 1 %] [% L.button_tag('kivi.io.update_price_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\')', LxERP.t8('Update Price')) %] [%- ELSE %] [% 'Selected' | $T8 %] @@ -71,7 +71,7 @@ [%- IF price_source.record_item.active_discount_source != price.source %] [% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ price.discount_as_percent _ '\')', LxERP.t8('Select')) %] -[%- ELSIF price_source.record_item.discount != price.discount * 100 %] +[%- ELSIF price_source.record_item.discount * 1 != price.discount * 100 %] [% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ price.discount_as_percent _ '\')', LxERP.t8('Update Discount')) %] [%- ELSE %] [% 'Selected' | $T8 %] -- 2.20.1