app/models/credit_card_receive_payment.rb
# == Schema Information
#
# Table name: transactions
#
# id :integer(4) not null, primary key
# type :string(255)
# batch_id :integer(4)
# created_at :datetime
# updated_at :datetime
#
class CreditCardReceivePayment < Transaction
def self.new_capture_authorized_payment(transacting_user, total_cost, at = Time.zone.now)
transaction = CreditCardReceivePayment.new()
transaction.new_transaction_ledgers( transacting_user, TransactionAccount::ACCOUNTS_RECEIVABLE_ID, TransactionAccount::CASH_ID, total_cost, at)
transaction
end
end