X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=templates%2Fwebpages%2Foe%2Fprice_sources_dialog.html;h=c8b85c67e315df117bda808f451849f21641be32;hb=232f9a39e89eb762ce23605230e810d2c5071cbc;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..c8b85c67e 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.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 %] |