Remove unused attribute

#772
This commit is contained in:
Artur Beljajev 2018-03-10 16:33:35 +02:00
parent 3704345d02
commit efaac16cee
10 changed files with 25 additions and 8 deletions

View file

@ -3,7 +3,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(cancelled_at: nil)
new_trans = Invoice.where(in_directo: false).where(cancelled_at: nil)
total = new_trans.count
counter = 0
Rails.logger.info("[DIRECTO] Will try to send #{total} invoices")