Files
old-ribica/front-api/views/cart_trello.erb
2015-09-26 11:58:01 +02:00

53 lines
905 B
Plaintext

<%
dd = @cart.delivery_destination
c = @cart
%>
**Ime:** <%= dd.name %>
**Adresa:**
<%= dd.address %>
<%= dd.place.to_s.strip %> <%= Place.name_from_code(dd.place.to_s) %>
Bosna i Hercegovina
**Email: **<%= dd.email %>
**Telefon: ** +387 <%= dd.phone %>
**Napomena: **
<%= dd.note %>
**Naručeno:** <%= @cart.updated_at.in_time_zone("Europe/Sarajevo").strftime("%A %d.%m.%Y. %H:%M") %>
<% if dd.instant_delivery %>
** OVO JE NARUDŽBA ZA INSTANT DOSTAVU **
<% end %>
<% @cart.item_in_carts.each do |iic| %>
**<%= iic.item.code %> <%= iic.item.name %>**
**<%= iic.count %>** x <%= Helper.money(iic.price) %> = <%= Helper.money(iic.count * iic.price) %>
<% end %>
Dostava
1 x <%= Helper.money(c.delivery_cost) %> = <%= Helper.money(c.delivery_cost) %>
**UKUPNO:** <%= Helper.money(c.total) %>
[Pogledati OVAJ LINK](https://www.ribica.ba/backoffice/carts/<%= @cart.id %>)