I have a customization where I can automatically post packing slip and invoice during picking slip registration.
So to post a packing slip through code we would call the salesFormLetter.update method and pass in either the salesorder or the wmsshipment. I was passing in wmsshipment because of packing slip consolidation into a single shipment for multiple sales orders.
Now I need a way to do the packing slip post through code by using the wmspickingroute because I want to include the freight and handling line items (service items) in the packing slip and the wmsshipment does not include these lines even if you select the Qty as Picked quantity and non stocked products.
I guess I somehow need a way to modify the query as the posting logic executes. I have been debugging to see the flow and end up getting lost in all the classes and methods and can’t seem to find the location to make modifications.
Do anybody have any experience with this?
*This post is locked for comments