The order is this:
Step 1 -
http://crm.loader.com.ua/admin/customorder/order/1708/edit/ I create a shipment from the Order through the procedure (Create shipment button)
Step 2 -
http://crm.loader.com.ua/admin/customorder/otgruzki/1782/edit/ sub-process shipment I carry out to the stage "Shipment (Pickup") - where the goods are shipped and our and the client's obligations are set
Step 3 - I spend the entrance. payment from the client in kind. Order -
http://crm.loader.com.ua/admin/customorder/order/1708/payment/#doneStep 4 - I simulate a return and create such a sub-process on the button "Return" to the genus. Order process -
http://crm.loader.com.ua/admin/customorder/order/1708/edit/Step 5- I carry out the return operation at the "Agree" stage -
http://crm.loader.com.ua/admin/customorder/vozvrati/1781/edit/Step 6 - I make an outgoing payment in the Parent Order
http://crm.loader.com.ua/admin/customorder/order/1708/payment/#doneIn the client card
http://crm.loader.com.ua/admin/shop/users/7113/ I receive Our obligations -816 and the client's obligations to us - 816
And I want everyone to be 0, since the client returned the goods, and I gave him money
In fact, I will need the same for the outgoing process then. Only there I will return the goods to the Supplier, and he will give us money.
Some correct general principle is needed.