I'm trying to programatically create shipment for orders that are already invoiced, but I cannot manage to make it work, in the sense that the shipment is correctly created, for all the items in the order, but order status remains 'Processing' instead of going to 'complete'.
I found an issue on shipped products,as their quantity stays to 0 after shipment creation. I've already asked about this, with no luck, so I'm trying to debug Magento core functions in order to figure out what is going on, but I cannot find where the setIsInProcess()
function is defined.
I've searched in all the classes of the module-sales but no luck.
Can somenone tell me where to find this method? It is owned by Sales\Order
and used like $order->setIsInProcess(true)
, but i cannot find function setIsInProcess(....)
nowhere.
I've obviously also searched with a grep
inside all .php
files from command line.
Any clue????? Please I'm struggling since 2 days!