From: Sven Schöling Date: Tue, 14 Oct 2014 15:51:53 +0000 (+0200) Subject: PriecSource: Numerische Vergleiche im Template stinken X-Git-Tag: release-3.2.0beta~154 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=766ed2a62209f558c5fc3befd7f82a4622afba99;p=kivitendo-erp.git PriecSource: Numerische Vergleiche im Template stinken --- 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 %]