Depends on the payment agreement. If you pay the whole invoice in advance, then the total is a prepayment to your balance sheet, and released in monthly instalments to the P&L. If the invoice is paid monthly, say by DD or SO, then the total is an accrual in the balance sheet and released in monthly instalments to the P&L as each month is paid.