88 lines
2.6 KiB
Plaintext
88 lines
2.6 KiB
Plaintext
<style type="text/css">
|
|
.tg { }
|
|
.tg td{ }
|
|
.tg th{ }
|
|
</style>
|
|
<%
|
|
dd = @record.delivery_destination
|
|
c = @record
|
|
%>
|
|
<p>
|
|
<p><strong>Ime:</strong> <%= dd.name %><br /><br /></p>
|
|
|
|
<p><strong>Adresa:</strong><br />
|
|
<%= dd.address %><br />
|
|
<%= dd.place.to_s.strip %> <%= Place.name_from_code(dd.place.to_s) %><br />
|
|
Bosna i Hercegovina<br /><br />
|
|
</p>
|
|
|
|
|
|
<p><strong>Email: </strong><%= dd.email %><br />
|
|
</p>
|
|
<p><strong>Telefon: </strong> +387 <%= dd.phone %><br /><br />
|
|
</p>
|
|
|
|
<p><strong>Plaćanje: </strong><%= dd.get_payment_string %></p><br />
|
|
|
|
<p><strong>Napomena: </strong><br />
|
|
<%= dd.note %><br /><br />
|
|
</p>
|
|
</p>
|
|
|
|
<% if dd.gift %>
|
|
<p><strong>Ovo je poklon</strong><br /><br />
|
|
<p><strong>Ime primaoca: </strong><%= dd.recipient_name %><br />
|
|
<p><strong>Adresa primaoca: </strong><%= dd.recipient_address %><br />
|
|
<p><strong>Postanski broj primaoca: </strong><%= dd.recipient_postal_code %><br />
|
|
<p><strong>Grad primaoca: </strong><%= dd.recipient_place %><br />
|
|
<p><strong>Email primaoca: </strong><%= dd.recipient_email %><br />
|
|
<p><strong>Telefon primaoca: </strong><%= dd.recipient_phone %><br /><br />
|
|
<% end %>
|
|
|
|
<p>
|
|
<strong>Naručeno:</strong> <%= c.confirmed_at.in_time_zone("Europe/Sarajevo").strftime("%A %d.%m.%Y. %H:%M") %>
|
|
<br />
|
|
<br />
|
|
</p>
|
|
<% if dd.instant_delivery %>
|
|
<p style="font-size: 120%;">
|
|
OVO JE NARUDŽBA ZA INSTANT DOSTAVU
|
|
</p>
|
|
<% end %>
|
|
|
|
<table class="tg">
|
|
<tr>
|
|
<th class="tg-031e">Code</th>
|
|
<th class="tg-031e">Item name</th>
|
|
<th style="text-align: right; ">Amount</th>
|
|
<th style="text-align: right; ">Price</th>
|
|
<th style="text-align: right; ">Total</th>
|
|
</tr>
|
|
<% @record.item_in_carts.each do |iic| %>
|
|
<tr>
|
|
<td class="tg-031e"><%= iic.item.code %></td>
|
|
<td class="tg-031e"><%= iic.item.name %></td>
|
|
<td style="text-align: right; "><%= iic.count %></td>
|
|
<td style="text-align: right; "><%= money(iic.price) %></td>
|
|
<td style="text-align: right; "><%= money(iic.count * iic.price) %></td>
|
|
</tr>
|
|
<% end %>
|
|
<tr>
|
|
<td class="tg-031e"></td>
|
|
<td class="tg-031e">Dostava</td>
|
|
<td style="text-align: right; ">1</td>
|
|
<td style="text-align: right; "><%= money(c.delivery_cost) %></td>
|
|
<td style="text-align: right; "><%= money(c.delivery_cost) %></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tg-031e"><strong>UKUPNO:</strong></td>
|
|
<td class="tg-031e"></td>
|
|
<td style="text-align: right; "></td>
|
|
<td style="text-align: right; "></td>
|
|
<td style="text-align: right; "><%= money(c.total) %></td>
|
|
</tr>
|
|
<tr><td><strong> </strong></td></tr>
|
|
|
|
</table>
|
|
<br /><br />
|