<%= v.id %> |
<% if '1.9'.respond_to? :force_encoding %>
<%= Iconv.iconv('utf-8', 'latin2', v.xml_type_title).join.force_encoding(Encoding::UTF_8) %>
<% else %>
<%= Iconv.iconv('utf-8', 'latin2', v.xml_type_title).join %>
<% end %>
|
<%= v.isbn %> |
<% if '1.9'.respond_to? :force_encoding %>
<%= Iconv.iconv('utf-8', 'latin2', v.lektor).join.force_encoding(Encoding::UTF_8) %>
<% else %>
<%= Iconv.iconv('utf-8', 'latin2', v.lektor).join %>
<% end %>
|
<%= v.volume %> |
<%= "%.2f zł" % v.price %> |
<% if session[:sgo_publications_prices][p.id].blank? || session[:sgo_publications_prices][p.id][v.id].blank? %>
<%= text_field_tag "price_#{p.id}_#{v.id}", nil, { :class => 'price_discount'} %> zł |
<%= text_field_tag "percent_#{p.id}_#{v.id}", nil, { :class => 'percent_discount' } %> % |
<% else %>
<%= text_field_tag "price_#{p.id}_#{v.id}", "%.2f" % session[:sgo_publications_prices][p.id][v.id], { :class => 'price_discount'} %> zł |
<%= text_field_tag "percent_#{p.id}_#{v.id}", "%.2f" % (((session[:sgo_publications_prices][p.id][v.id] / PublicationVersion.find(v.id).price) * 100.0) - 100.0).abs, { :class => 'percent_discount' } %> % |
<% end %>
<% end %>