Explanation:
The journal entry is shown below:
Account receivable A/c Dr $500
To Service revenue A/c $500
(Being the service provided is recorded)
Since the account receivable balance is increased so we debited this account and the service revenue is also increase so we credited this account. Both the accounts are recorded for $500