Approve all lines on dispatch

When we receive a lot of items in a supplier order we need to “approve” a lot of lines.

There seems to be no good way to approve all lines on the dispatch.php
Does anyone have a good idea how to implement a button to approve all items?
I would be happy to do the work