Accrual basic question

U Co. had cash purchases and payments on account during the current year totaling $455,000. U's beginning and ending accounts payable balances for the year were $64,000 and $50,000, respectively. What amount represents U's accrual-basis purchases for the year? $441,000 $469,000 $505,000 $519,000 I understand that you do the T account for payables...but I don't get how the 455000 debit entry to the AP account to back into the $ spent for purchases makes sense since the $455000 includes cash purchases - which wouldn't go thru an AP account, right?