This worked in the past but since sometime it did not work as it should and i had been using the option in woocommerce->settings-> cost of goods->tools->Recalculate cost and profit for orders with no costs
But this is not working…it does not populate the openpos orders with the order cost and profit…