Class: Comee::Core::AdditionalItem

Inherits:
ApplicationRecord show all
Defined in:
app/models/comee/core/additional_item.rb

Instance Method Summary collapse

Instance Method Details

#update_invoiceObject



12
13
14
15
16
# File 'app/models/comee/core/additional_item.rb', line 12

def update_invoice
  invoice.calculate_total_price
  invoice.calculate_vat
  invoice.save!
end