module ErpTxnsAndAccts::Extensions::ActiveRecord::ActsAsBizTxnAccount::InstanceMethods
Public Instance Methods
account_root()
click to toggle source
# File lib/erp_txns_and_accts/extensions/active_record/acts_as_biz_txn_account.rb, line 39 def account_root biz_txn_acct_root end
destroy_biz_txn_account()
click to toggle source
# File lib/erp_txns_and_accts/extensions/active_record/acts_as_biz_txn_account.rb, line 55 def destroy_biz_txn_account self.biz_txn_acct_root.destroy if (self.biz_txn_acct_root && !self.biz_txn_acct_root.frozen?) end
initialize_biz_txn_account()
click to toggle source
# File lib/erp_txns_and_accts/extensions/active_record/acts_as_biz_txn_account.rb, line 43 def initialize_biz_txn_account if self.new_record? and self.biz_txn_acct_root.nil? t = BizTxnAcctRoot.new self.biz_txn_acct_root = t t.biz_txn_acct = self end end
save_biz_txn_account()
click to toggle source
# File lib/erp_txns_and_accts/extensions/active_record/acts_as_biz_txn_account.rb, line 51 def save_biz_txn_account self.biz_txn_acct_root.save end