The first is accrual accounting, where the revenue from selling a good or service is recognized in the period in which the good is sold or the service is performed (in whole or substantially), and a corresponding effort is made to match expenses incurred to generate revenues.