The correction of #14816 was wrong and the amount to pay should be modified if
there is a global refund.
(grafted from dfbbbe26ad8eb25fd6dc1ad0a68cb7cec8307aae)
--HG--
branch : 7.0
After a refund the authorized payment amount may be lower than the amount to
pay but the sale should still stay in processing or done state.
Closes#14816
(grafted from 9df991a256f872f8d9623b675732b1480534e553)
--HG--
branch : 7.0
This is in case there is no transaction/payment to trigger the confirmation.
Closes#14256
(grafted from 92e503ff4aa6f10dbca34098c801a3f683db160e)
--HG--
branch : 7.0
At the creation the order may already have the total price modified by refund
etc.
Closes#14234
(grafted from 1f2cf9e448a166ef67864916031b703ffbf8befa)
--HG--
branch : 7.0
As the update from Shopify may need to add new lines which can only be created
for a draft sale.
Closes#14099
(grafted from d899456fefd6d8a0b00dfcc1dffcc3c8613d97b4)
--HG--
branch : 7.0
Shopify order can be modified from the admin in such way that the total
increase and it is only partially paid.
In such case we must prevent to process the sale by resetting to quotation
until being fully paid.
Closes#13961
(grafted from 6b2995ad4950e768b19744e2bbe28f8f1f6a0e44)
--HG--
branch : 7.0