Class: Bscf::Core::OrderItem
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Bscf::Core::OrderItem
- Defined in:
- app/models/bscf/core/order_item.rb
Instance Method Summary collapse
Instance Method Details
#calculate_subtotal ⇒ Object
11 12 13 |
# File 'app/models/bscf/core/order_item.rb', line 11 def calculate_subtotal self.subtotal = (unit_price * quantity).round(2) end |