If order has two payments, from which one is completed and another one is cancelled, then if the completed payment amount === order.total, order is paid. Agree?