mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
Story#105855968 - counter is outside of namespace
This commit is contained in:
parent
519046064d
commit
6459e89705
1 changed files with 2 additions and 1 deletions
|
@ -74,6 +74,7 @@ class Directo < ActiveRecord::Base
|
|||
raise "Directo counter is out of period"
|
||||
end
|
||||
|
||||
directo_next = last_directo
|
||||
Registrar.where.not(exclude_in_monthly_directo: true).find_each do |registrar|
|
||||
unless registrar.cash_account
|
||||
Rails.logger.info("[DIRECTO] Monthly invoice for registrar #{registrar.id} has been skipped as it doesn't has cash_account")
|
||||
|
@ -118,7 +119,7 @@ class Directo < ActiveRecord::Base
|
|||
|
||||
# generating XML
|
||||
if items.any?
|
||||
directo_next = last_directo + 1
|
||||
directo_next += 1
|
||||
invoice_counter.next
|
||||
|
||||
builder = Nokogiri::XML::Builder.new(encoding: "UTF-8") do |xml|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue