When both debit and credit entries of a transaction are shown in the cash book,…