Dear Community
I need to group Purchase Order in Master planning job on the basis of New entered Warehouse control. Currently, there is an option of grouping purchase orders on the basis of vendor which works fine.
Select the lines from grid and click Firm, it will open the dialog and after clicking ok it will create a purchase order of all the selected lines. If vendor group control is selected yes then it will group the lines on the basis of vendor and will create different PO's if there are different vendors in selection.
Navigation of this job -> Master planning -> Planned Orders
Group by warehouse is the custom control which I added. If it is selected yes, then the selected lines should be grouped on the basis of warehouse otherwise not.

If someone has worked in this module or in this job or have any information related to this job then let me know.
Thank you in advance.