X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Foe%2Fprice_sources_dialog.html;h=7cfd7f849651c9351757acf0d200a1680daf3ced;hb=9a7376fb5f5a10e0ec12842b19bf76b7b708221d;hp=92ee4ebfe6940db3bc88066f02661da422c3068b;hpb=049e49fea3e4a3c7c78d7aebf055936b3cab40c5;p=kivitendo-erp.git diff --git a/templates/webpages/oe/price_sources_dialog.html b/templates/webpages/oe/price_sources_dialog.html index 92ee4ebfe..7cfd7f849 100644 --- a/templates/webpages/oe/price_sources_dialog.html +++ b/templates/webpages/oe/price_sources_dialog.html @@ -3,12 +3,16 @@ [%- USE L %] [%- USE LxERP %] [% SET best_price = price_source.best_price %] +[% SET best_discount = price_source.best_discount %] +
[% 'Price Source' | $T8 %] | [% 'Price' | $T8 %] | [% 'Best Price' | $T8 %] | +[% 'Details' | $T8 %] | ||||||
---|---|---|---|---|---|---|---|---|---|
[% 'None (PriceSource)' | $T8 %] | - | + | |||||||
[% 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_as_number != price.price_as_number %] +[%- 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 %] | [% END %] -[% price.full_description | html %] | -[% price.price_as_number %] | +[% price.source_description | html %] | +[% price.price_as_number %] | [% IF price.source == best_price.source %]• | [% ELSE %][% END %] + | [% price.description | html %] | +
+ | [% 'Price Source' | $T8 %] | +[% 'Discount' | $T8 %] | +[% 'Best Discount' | $T8 %] | +[% 'Details' | $T8 %] | +|||
---|---|---|---|---|---|---|---|
[% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'\')', LxERP.t8('Select')) %] | +[%- ELSE %] +[% 'Selected' | $T8 %] | +[%- END %] +[% 'None (PriceSource Discount)' | $T8 %] | +- | ++ | + | ||
[% 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 * 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 %] | +[% END %] +[% price.source_description | html %] | +[% price.discount_as_percent %] % | +[% IF price.source == best_discount.source %] +• | +[% ELSE %] ++[% END %] + | [% price.description | html %] |