Table (in the modal window) with actions which require another step

I have a modal window with a table of items. Items have different statuses and the user can change the status. For example, from Not shipped to Backordered. The problem is when yo have the item quantity > 1. Then the user should be able to change the status for one item, all, or some. And I got stuck as I can't find any good pattern that would work here. I'm trying to avoid opening another modal window (the table itself is a modal window). The solution I have on the wireframe seems weird. Because the user has to change the number first and then click the link.

The table