Double Entry for Developers
Published: 2023-03-31 19:03:20

At Woovi, ensuring the accuracy of our numbers is crucial. Even the slightest mistake can cause irreparable damage. For this reason, we have a robust ledger system at our core.

If at any point in your career you find yourself working in a place that deals with numbers, you will undoubtedly come across the terms **Double Entry Accounting** and **Ledger**. But what exactly do they mean?

A ledger refers to the Book of Accounts, which is responsible for keeping track of all transactions. The accounts represent the 'where' of the debit or credit event.

One of the biggest misconceptions surrounding ledgers is the idea that all the accounts within a ledger are bank accounts. This is not true. While a bank account may use a ledger to keep track of its numbers, the ledger itself does not specifically concern bank accounts. Accounts within a ledger can be used to track virtually anything you want.

Another common misconception lies in the notion of double entry. Double entry transactions do not necessarily mean that there will always be exactly two entries within a transaction. Rather, it means that there will always be **at least** one Credit and one Debit within it. As long as the sum of credits and debits inside the transaction matches, it follows the rules of double entry accounting.

There is not a single correct way of representing something on a ledger; it all depends on your wants and needs. Let's look at how you can represent the same transaction in multiple ways using this example:

Suppose we have a lemonade stand in front of a shop. To let us stay on the sidewalk, this shop charges us 10% of each lemonade we sell, and we charge USD 300.00 for each drink. Yes, our lemonade is **that** good. So, how can we represent the sale of a drink on the ledger?

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f3gbujy1ec7gp4pvirwx.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uwwh7j8rfe7b7edjujsl.png)

Both of these methods are correct ways to represent the sale of the drink on the ledger. It's all about what we want and need. Does it make sense for us to record the fees being paid by us separately? Will this number be useful for us in the future? It all depends on what and how you want to use the ledger.

Note that we have no mention of banks here. We have an account that tracks our earnings, one that tracks the small shop earnings, and one to represent the buyer. Do you want to know your earnings by customer? Create an account for each of them! Accounts on the ledger are nothing special; they're just another row on a database.

---

If you want to work in a startup in its early stages, This  is your chance. [Apply today!](https://woovi.com/jobs/)

---

[Woovi](https://woovi.com/) is a Startup that enables shoppers to pay as they please. To make this possible, Woovi provides instant payment solutions for merchants to accept orders.

If you want to work with us, we are [hiring](https://woovi.com/jobs/)!

---

Photo by <a href="https://unsplash.com/pt-br/@rodlong?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Rod Long</a> on <a href="https://unsplash.com/photos/JB5YCqOXV1o?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>