Hi Everyone,
I have requirement to split WMS work lines through code.
If we go to below path and open all Works
Warehouse management > Work > Work details
On Work details, if we select any work and go to Action Pane , under Work section > Complete work
If we click on Complete work, selected specific Work Header and Lines gets populated in form WHSWorkComplete and it has below temporary data sources,
1. WHSTmpCompleteWorkTable
2. WHSTmpCompleteWotkLine
Now, the business requirement is, we need to provide one menu on this form something named like 'Split'; on clicking on it New dialog form will pop up, where it will populate Work Qty and Location of Pick Work line.
In below reference screenshot, it will populate location as 01 and Work Qty as 22.
Now, on the dialog, user will split above Qty and will set it to different locations. And on clicking on Ok, the existing Qty should get adjusted and new Pick lines must get created with defined Qty and locations.

Above process somehow resembles with Split that we do during Product Receipt registration.

So my question here is, how I can proceed for this Customization? What logic I should right on Clicking on Ok? Is there any standard classes that I should utilize for it, as we are adjusting Qty on existing Work line and creating new Work lines as well?
Thank you in advance.