[% USE T8 %] [% USE HTML %] [% USE L %] [% USE LxERP %] [% SET best_price = price_source.best_price %] [% SET best_discount = price_source.best_discount %] [% IF price_source.record_item.active_price_source %] [% ELSE %] [% END %] [% FOREACH price IN price_source.available_prices %] [% IF price_source.record_item.active_price_source != price.source %] [% ELSIF price_source.record_item.sellprice * 1 != price.price * 1 %] [% ELSE %] [% END %] [% IF price.source == best_price.source %] [% ELSE %] [% END %] [% END %]
[% 'Prices' | $T8 %]
[% 'Price Source' | $T8 %] [% 'Price' | $T8 %] [% 'Best Price' | $T8 %] [% 'Details' | $T8 %]
[% LxERP.t8('Select') %] [% #L.button_tag('kivi.io.update_price_source(' _ FORM.row _ ', \'\')', LxERP.t8('Select'), class='button neutral') %] [% 'Selected' | $T8 %][% 'None (PriceSource)' | $T8 %] -
[% LxERP.t8('Select') %] [% #L.button_tag('kivi.io.update_price_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\')', LxERP.t8('Select')) %] [% LxERP.t8('Update Price') %] [% #L.button_tag('kivi.io.update_price_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\')', LxERP.t8('Update Price')) %] [% 'Selected' | $T8 %][% price.source_description | html %] [% price.price_as_number %]-[% price.description | html %]
[% IF price_source.record_item.active_discount_source %] [% ELSE %] [% END %] [% FOREACH price IN price_source.available_discounts %] [% IF price_source.record_item.active_discount_source != price.source %] [% ELSIF price_source.record_item.discount * 1 != price.discount * 100 %] [% ELSE %] [% END %] [% IF price.source == best_discount.source %] [% ELSE %] [% END %] [% END %]
[% 'Discounts' | $T8 %]
[% 'Price Source' | $T8 %] [% 'Discount' | $T8 %] [% 'Best Discount' | $T8 %] [% 'Details' | $T8 %]
[% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'\')', LxERP.t8('Select'), class='neutral') %][% 'Selected' | $T8 %][% 'None (PriceSource Discount)' | $T8 %] -
[% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ price.discount_as_percent _ '\')', LxERP.t8('Select')) %][% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ price.discount_as_percent _ '\')', LxERP.t8('Update Discount')) %][% 'Selected' | $T8 %][% price.source_description | html %] [% price.discount_as_percent %] %[% price.description | html %]