my question is about importing order via orderRepository, and calculating price.
I've made a script that automatically import order from another webshop into our Magento backend. Now, because there is a cronjob on that script (runs every 5 minutes), the same order gets imported every time the cronjob runs. What is the best way to check if the order is already imported?!
I've add those order via the orderRepository, but when I save one order, all price fields are empty (including Tax column). Now, the QuoteFactory has the collectTotals() method to calculate that automatically for you, but the orderRepository hasn't. Is there some way I can calculate the price and tax automatically, but still use the orderRepository?!