module ErpTxnsAndAccts::Extensions::ActiveRecord::ActsAsBizTxnEvent::SingletonMethods
Public Instance Methods
with_current_status(status)
click to toggle source
# File lib/erp_txns_and_accts/extensions/active_record/acts_as_biz_txn_event.rb, line 45 def with_current_status(status) self.joins(:biz_txn_event).where("biz_txn_events.id in (#{BizTxnEvent.select('biz_txn_events.id').with_current_status(status).to_sql})") end
without_current_status(status)
click to toggle source
# File lib/erp_txns_and_accts/extensions/active_record/acts_as_biz_txn_event.rb, line 49 def without_current_status(status) self.joins(:biz_txn_event).where("biz_txn_events.id in (#{BizTxnEvent.select('biz_txn_events.id').without_current_status(status).to_sql})") end