Two Shipments are created for PO with Multi Routing enabled
When warehouse us set to receive goods in two steps, System create two shipments at the confirmation of purchase order. One for receipt and one for transfers. these both are shown at the PO. when we enter receipt and then enter transfer, system update the received quantity in PO with double amount and same goes for invoice. So in PO amount receipt is double and in PO quantity invoices is also double.
Second issue is If we create route for internal transfer then system is creating just one transaction against PO receipt but not creating internal Transfer transaction automatically.
Steps to reproduce
Create Inventory With Two step Receiving options Create PO Enter Receipt Enter Transfer
What is the current bug behavior?
Duplicate the ordered receipt and invoice quantity and create two shipments
What is the expected correct behavior?
Create single shipment and dont double the quantity at po and invoice.
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
(If you can, link to the line of code that might be responsible for the problem)