| 12345678910111213141516171819202122232425262728293031 |
- <style>
- .column {
- float: left;
- }
- .left {
- width: 70%;
- font-size: 10px;
- min-height:5px;
- }
- .right {
- width: 30%;
- font-size: 12px;
- font-weight: bold;
- }
- </style>
- <div class='pdf-body'>
- <% @products.each do |obj| %>
- <% (1..obj['print']).each do |i| %>
- <div class="text-center"><%= wicked_pdf_barcode_image("#{obj['product'].barcode}.png", options = { width: 150, height: 50 }) %></div>
- <p style="margin:0px"><%= obj['product'].name %></p>
- <div class="row">
- <div class="column left"><%= obj['product'].display_attributes %></div>
- <div class="column right"><%= number_to_currency(obj['price'], precision: 2) %></div>
- </div>
- <br>
- <br>
- <% end %>
- <% end %>
- </div>
|