Files
old-ribica/front-api/views/cart_trello.erb

50 lines
1.1 KiB
Plaintext
Raw Normal View History

2016-01-08 09:36:28 +01:00
<%
2015-09-26 11:58:01 +02:00
dd = @cart.delivery_destination
c = @cart
%>
2016-05-07 09:17:30 +02:00
**Ime:** <%= dd.name %>
2015-09-26 11:58:01 +02:00
**Adresa:**
<%= dd.address %>
2016-05-07 06:10:04 +02:00
<%= dd.place.to_s.strip %>
<%= Place.name_from_code(dd.place.to_s) %>
2016-05-07 09:17:30 +02:00
Bosna i Hercegovina
2015-09-26 11:58:01 +02:00
2016-05-07 09:17:30 +02:00
**Email: **<%= dd.email %>
2015-09-26 11:58:01 +02:00
2016-05-07 09:17:30 +02:00
**Telefon: ** +387 <%= dd.phone %>
2015-09-26 11:58:01 +02:00
2016-05-07 09:17:30 +02:00
**Plaćanje: **<%= dd.get_payment_string %>
2016-01-08 09:36:28 +01:00
2015-09-26 11:58:01 +02:00
**Napomena: **
2016-05-07 09:17:30 +02:00
2015-09-26 11:58:01 +02:00
<%= dd.note %>
2016-01-12 15:43:11 +01:00
<% if dd.gift %>
2016-05-07 06:10:04 +02:00
**Poklon ** **Name: **<%= dd.recipient_name %>
2016-01-12 15:43:11 +01:00
**Postal code: **<%= dd.recipient_postal_code %>
**Place: **<%= dd.recipient_place %>
**Address: **<%= dd.recipient_address %>
**Phone: **<%= dd.recipient_phone %>
**Email: **<%= dd.recipient_email %>
<% end %>
<% if dd.instant_delivery %>
2015-09-26 11:58:01 +02:00
2016-05-07 06:10:04 +02:00
**Naručeno:**
<%= @cart.updated_at.in_time_zone("Europe/Sarajevo").strftime("%A %d.%m.%Y. %H:%M") %>
2015-09-26 11:58:01 +02:00
2016-02-16 12:28:49 +01:00
<% end %>
2015-09-26 11:58:01 +02:00
<% @cart.item_in_carts.each do |iic| %>
2016-05-07 09:21:34 +02:00
**<%= iic.item.code %> <%= iic.item.name %>**
**<%= iic.count %>** x <%= Helper.money(iic.price) %> = <%= Helper.money(iic.count * iic.price) %>
2015-09-26 11:58:01 +02:00
<% end %>
2016-05-07 09:21:34 +02:00
Dostava
1 x <%= Helper.money(c.delivery_cost) %> = <%= Helper.money(c.delivery_cost) %>
2016-01-08 09:36:28 +01:00
2016-05-07 09:17:30 +02:00
**UKUPNO:** <%= Helper.money(c.total) %>