AR vs. AP
Accounts Receivable = money owed to you. Accounts Payable = money owed by you. Both are working-capital line items, but AR is usually riskier because you don't control when the customer pays.
How AR is recorded
When you send an invoice, you debit AR and credit Revenue. When the customer pays, you debit Cash and credit AR. Unpaid balances older than your terms become "overdue AR" and feed the aging report.