Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a double entry accounting system! #420

Open
danshorstein opened this issue Nov 8, 2018 · 0 comments
Open

Make a double entry accounting system! #420

danshorstein opened this issue Nov 8, 2018 · 0 comments

Comments

@danshorstein
Copy link
Contributor

Accounting is easy right? Just debits and credits, and the debits must always equal credits. This challenge is to implement a basic accounting system, that can perform at least three unique accounting entries and produce a trial balance. Each time an entry is recorded, it should validate the entry balances to 0, then print the details of the entry, and then the current trial balance after the effect of the entry.

Here are some example accounting entries and a CSV trial balance output after each entry:

Entry 0:
Put $500 of capital contribution into company
Debit Cash 500
Credit Paid-In-Capital 500

Trial Balance:
Account, Balance
Cash, 500
Paid-In-Capital, -500

Entry 1 - Receive an invoice for supplies received.
Debit Supplies Expense 100
Credit Accounts Payable -100

Trial Balance:
Account, Balance
Cash, 500
Accounts Payable, -100
Paid-In-Capital, -500
Supplies Expense, 100

Entry 2 - payment of accounts payable
Debit Accounts Payable 100
Credit Cash 100

Trial Balance:
Account, Balance
Cash, 400
Accounts Payable, 0
Paid-In-Capital, -500
Supplies Expense, 100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant