Invoice filtering in registrar

This commit is contained in:
Martin Lensment 2015-04-28 12:14:20 +03:00
parent 1f2f483e34
commit 23098add74
13 changed files with 83 additions and 7 deletions

View file

@ -32,6 +32,8 @@ class Invoice < ActiveRecord::Base
false
end
before_save -> { self.sum_cache = sum }
def binded?
account_activity.present?
end