Refactor debit and credit registrar to include pricelist id #2741

This commit is contained in:
Martin Lensment 2015-07-13 17:39:54 +03:00
parent 9fd38f161a
commit 75a6c27221
11 changed files with 80 additions and 123 deletions

View file

@ -397,7 +397,7 @@ class Domain < ActiveRecord::Base
DomainMailer.pending_deleted(self).deliver_now
end
def price(operation, period_i = nil, unit = nil)
def pricelist(operation, period_i = nil, unit = nil)
period_i ||= period
unit ||= period_unit
@ -413,7 +413,7 @@ class Domain < ActiveRecord::Base
p = "#{p}year"
end
Pricelist.price_for(zone, operation, p)
Pricelist.pricelist_for(zone, operation, p)
end
### VALIDATIONS ###