In the context of business accounting, which of the following best describes a transaction?
A) A transaction is any event that affects the cash flow of a business without altering its financial position.
B) A transaction is a financial exchange between two parties that is recorded in the company's books and affects its financial statements.
C) A transaction refers to the strategic planning process used to forecast future sales and expenses.
D) A transaction is a legal agreement between two businesses to collaborate on a new product development.