This page explains how to record a customer deposit or retainer in QuickBooks Online as a liability and apply it to the final invoice without counting it as income.
This page explains how to record business expenses in QuickBooks Online, split payments across categories, and review them in the Expenses list.
How QuickBooks Online records, displays, and reports retained earnings, and how to review the balance without changing prior-year data.