trello integration finished
This commit is contained in:
52
front-api/views/cart_trello.erb
Normal file
52
front-api/views/cart_trello.erb
Normal file
@@ -0,0 +1,52 @@
|
||||
|
||||
<%
|
||||
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 %>)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user