From my (limited) understanding of Accounting, this is what I think should happen when a sale is made:
-
Debit the Cash account by the selling price
-
Credit the Income account by selling price
-
Debit the Expense account by the buying price
-
Credit the Inventory account by the buying price
But when I record a transaction in Manager.io, on top of the above steps, it also credits the Retained Earnings by (selling price - buying price). Is this how it is supposed to work? If yes, where is the debit side of the extra transaction?