Class: Comee::Core::InvoiceItem
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Comee::Core::InvoiceItem
- Defined in:
- app/models/comee/core/invoice_item.rb
Instance Method Summary collapse
Instance Method Details
#update_invoice ⇒ Object
16 17 18 19 20 |
# File 'app/models/comee/core/invoice_item.rb', line 16 def update_invoice invoice.calculate_total_price invoice.calculate_vat invoice.save! end |