mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Refactor debit and credit registrar to include pricelist id #2741
This commit is contained in:
parent
9fd38f161a
commit
75a6c27221
11 changed files with 80 additions and 123 deletions
|
@ -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 ###
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue