Method: Effective::OrderItem#total
- Defined in:
- app/models/effective/order_item.rb
#total ⇒ Object
47 48 49 50 51 |
# File 'app/models/effective/order_item.rb', line 47 def total return subtotal if tax_exempt? raise 'parent Effective::Order must have a tax_rate to compute order item total' unless order.try(:tax_rate).present? subtotal + tax end |