Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mbulat committed May 15, 2012
1 parent b44d8ee commit fa5ff3c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/models/plutus/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,6 @@ def self.build(hash)
transaction
end


t = Plutus::Transaction.build(
description: "Sold some widgets",
debits: [
{account: "Accounts Receivable", amount: 50}],
credits: [
{account: "Sales Revenue", amount: 45},
{account: "Sales Tax Payable", amount: 8}])

private
def difference_of_amounts
credit_amount_total = credit_amounts.inject(0) {|sum, credit_amount| sum + credit_amount.amount.to_i}
Expand Down

0 comments on commit fa5ff3c

Please sign in to comment.