mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 09:45:11 +02:00
Story#105852786 - Directo invoices are calculated based on invoices
This commit is contained in:
parent
bc640c63fe
commit
72bd54dc7c
6 changed files with 22 additions and 19 deletions
|
@ -2,7 +2,7 @@ class BankTransaction < ActiveRecord::Base
|
|||
include Versions
|
||||
belongs_to :bank_statement
|
||||
has_one :account_activity
|
||||
has_many :directo_records, as: :item, class_name: 'Directo'
|
||||
has_many :directo_records, as: :item, class_name: 'Directo'# Deprecated
|
||||
|
||||
scope :unbinded, lambda {
|
||||
where('id NOT IN (SELECT bank_transaction_id FROM account_activities where bank_transaction_id IS NOT NULL)')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue