mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
parent
094c06bee7
commit
1107dc67b8
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ class Invoice < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def subtotal
|
||||
invoice_items.collect { |line_item| line_item.item_sum_without_vat }.reduce(:+)
|
||||
invoice_items.map(&:item_sum_without_vat).reduce(:+)
|
||||
end
|
||||
|
||||
def vat_amount
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue