With the IRS if you file a return, individual or business, that shows an overpayment, and you requested on the return to apply it to the following year, if you have to amend the return that created the overpayment, the Service will usually move the overpayment back against the new deficiency if requested via Pract Hotline.
California will not do that for overpayments for which overpayments were requested on the return to be credited to next year. They consider the request on the original return to apply to next year an irrevocable choice, much the way if the wrong year voucher is used to pay an estimated tax amount. (though CA did allow a client of mine who made a huge online payment to the wrong year to correct it)
But if instead of requesting the overpayment be applied to next year for CA, you request a refund, then CA will allow you to send the check back and ask that it be applied to next year. I've never tried, but CA might allow you to send the check back and ask that it be applied to the balance due on the revised/amended original return.o
How does your state respond to requests to apply overpayments that on original returns were requested to be applied to next year, you request that they be applied to deficiency on amended returns for that year. All of this before the initial due date for the subsequent year return.