1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/views/api/prices/compute.json.jbuilder

10 lines
309 B
Plaintext
Raw Normal View History

2016-03-23 18:39:41 +01:00
json.price @amount[:total] / 100.00
json.details do
json.slots @amount[:elements][:slots] do |slot|
json.start_at slot[:start_at]
json.price slot[:price] / 100.00
json.promo slot[:promo]
end
json.plan @amount[:elements][:plan] / 100.00 if @amount[:elements][:plan]
end if @amount[:elements]