Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. module BookingsHelper
  2.  
  3. def tax_calculation
  4. PricingService.new(@availability).tax
  5. end
  6.  
  7. def booking_price
  8. PricingService.new(@availability).price
  9. end
  10.  
  11. def discount_amount
  12. -PricingService.new(@availability).discount
  13. end
  14.  
  15. def price_after_discount
  16. PricingService.new(@availability).price_after_discount
  17. end
  18.  
  19. def service_fee
  20. PricingService.new(@availability).fee
  21. end
  22.  
  23. def booking_subtotal
  24. PricingService.new(@availability).subtotal
  25. end
  26.  
  27. def booking_total
  28. PricingService.new(@availability).total_price
  29. end
  30.  
  31.  
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement