The rules of double entry
The link between the balance sheet and the profit report is the profit figure.
Profit increases proprietorship therefore credit.
It follows that revenue increases profit therefore credit.
Expenses reduce profit therefore debit.