Fix invoice

#623
This commit is contained in:
Artur Beljajev 2018-03-14 12:19:44 +02:00
parent fb35ec5cbb
commit e1b0f3044e
2 changed files with 5 additions and 0 deletions

View file

@ -160,6 +160,7 @@ class Invoice < ActiveRecord::Base
def total
calculate_total unless total?
read_attribute(:total)
end
private