Entries marked with (P&L) should be posted to a profit or loss code. All others are posted to balance sheet codes.
DR Purchases (P&L);
CR Bank/Accounts payable
Remember - the code in Purchases will be specific to the nature of the cost. For example, a lawyer’s invoice would be posted to legal fees