What is the right way to find full-paid orders in Shopware 6?
We are using this code:
$criteria = new Criteria();
$criteria->addFilter(new EqualsFilter('transactions.stateMachineState.technical_name', 'paid'));
...
$this->orderRepository->search($criteria, $context)->getEntities()
This seems to work in general. But what if an order has multiple transactions? I believe this would find still partially paid transactions.
Can an orders even have multiple transactions? How would that case be created in the frontend?