How do I record this transaction? Sold inventory on account for $500, cost of merchandise sold was $300. (Record the sale first and then the cost.)