mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 08:22:05 +02:00
Story#105855968 - Exclude registrars in directo monthly invoices
This commit is contained in:
parent
ef55560d0e
commit
519046064d
4 changed files with 12 additions and 2 deletions
|
@ -74,7 +74,7 @@ class Directo < ActiveRecord::Base
|
|||
raise "Directo counter is out of period"
|
||||
end
|
||||
|
||||
Registrar.find_each do |registrar|
|
||||
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")
|
||||
next
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue