Refund and Payment after amendment

Hello, curious what to expect. I had done an amendment and understandably had a reduced refund for the added income, however it’s now giving me. 1040-v to pay a prior tax return. Is the 1040-v net after the refund from the current year refund or are they separate items. So I should pay the 1040-v and expect the refund?