For each transaction there are always 2 side are affected or 2 Accounts books are maintain, debit and credit. thats why it is called double entry system. Like if I buy something my cash account will decrease and same time seller will record it as Income by increase sales revenue.