Microsoft Dynamics 365 Business Central sync error: Direct Posting must be equal to 'Yes' in Chart of Accounts: No.=XXXXX. Current value is 'No'

Why the sync error occurs

This error occurs when a bill/purchase invoice payment in Cashflow360 is trying to sync to Microsoft Dynamics 365 Business Central (MSDBC), but the payment account doesn't have direct posting enabled in MSDBC.

How to fix the sync error

Enable direct posting on the account listed in the error in MSDBC, and sync again.