Get your taxes done using TurboTax

I entered the estimated payments (Franchise Tax Board/State) on the 1040, but not on the 540.  I also think that I need to do an amendment, because since I applied the payments to 1040 it was deducted, so I owe that money to the 1040.  I didn't not apply payments to the 940, so I think I should get a refund from state.  So do I also do an amendment for my 540? I think I also need to do an amendment, because I need to know how much I owe, and it would give me documents to attach with the payment.