mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Story#105852786 - we should use when cancelled_at is nil
This commit is contained in:
parent
6a63feb5dd
commit
e963484277
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ class Directo < ActiveRecord::Base
|
|||
belongs_to :item, polymorphic: true
|
||||
|
||||
def self.send_receipts
|
||||
new_trans = Invoice.where(invoice_type: "DEB", in_directo: false).where.not(cancelled_at: nil)
|
||||
new_trans = Invoice.where(invoice_type: "DEB", in_directo: false).where(cancelled_at: nil)
|
||||
Rails.logger.info("[DIRECTO] Will try to send #{new_trans.count} invoices")
|
||||
|
||||
new_trans.find_in_batches(batch_size: 10).each do |group|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue