Accts Receivable in Gen Ledger innundated with unnecessary transactions

Whenever a POS invoice is printed having a cash payment, the following entries are passed in the GL, putting unnecessary info in the GL a/c:

Dr - Accounts Receivable A/c
Cr - Sales A/c


Dr - Cash a/c
Cr - Accounts Receivable a/c

Why can’t only one entry be passed:
Dr - Cash
Cr - Sales a/c