Cash basis and accrual basis

Accrual accounting recognizes revenue when it is earned and expenses when they are incurred to earn it, so a month's net income can differ from the cash it brought in.

From Financial Accounting.