mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
parent
b8a457277d
commit
e9b84212ea
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class Directo < ActiveRecord::Base
|
||||||
hash = {
|
hash = {
|
||||||
"ProductID" => DOMAIN_TO_PRODUCT[price.zone_name],
|
"ProductID" => DOMAIN_TO_PRODUCT[price.zone_name],
|
||||||
"Unit" => "tk",
|
"Unit" => "tk",
|
||||||
"ProductName" => ".#{price.zone_name} registreerimine: #{price.duration.to_i} aasta",
|
"ProductName" => ".#{price.zone_name} registreerimine: #{price.duration.to_i} aasta#{price.duration.to_i > 1 ? 't' : ''}",
|
||||||
"UnitPriceWoVAT" => price.price.amount / price.duration.to_i
|
"UnitPriceWoVAT" => price.price.amount / price.duration.to_i
|
||||||
}
|
}
|
||||||
hash["StartDate"] = (activity.created_at + (year-1).year).end_of_month.strftime(date_format) if year > 1
|
hash["StartDate"] = (activity.created_at + (year-1).year).end_of_month.strftime(date_format) if year > 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue