Commit Graph
11 Commits
Author SHA1 Message Date
Cédric Krier e67e3b41d5 Process Shopify sale only if the authorized payment amount is greater than the amount to pay
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
2026-06-03 15:06:05 +02:00
Cédric Krier ce96f6289d Do not reset to quotation Shopify order already processed
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
2026-05-05 00:11:08 +02:00
Cédric Krier 8e054bcb91 Always try to confirm Shopify sale after creation and update
This is in case there is no transaction/payment to trigger the confirmation.

Closes #14256
(grafted from 92e503ff4aa6f10dbca34098c801a3f683db160e)

--HG--
branch : 7.0
2025-09-25 17:32:00 +02:00
Cédric Krier cc0222be5e Use current total price when creating sale from Shopify order
At the creation the order may already have the total price modified by refund
etc.

Closes #14234
(grafted from 1f2cf9e448a166ef67864916031b703ffbf8befa)

--HG--
branch : 7.0
2025-09-17 13:23:09 +02:00
Cédric Krier 9a9757fc21 Create draft sale with guest party for Shopify order without customer and update it later
Closes #14167
(grafted from 1b7e09377711d17582ae531f3d868dc99a031091)

--HG--
branch : 7.0
2025-08-16 10:33:56 +02:00
Cédric Krier f69b50af84 Clear the Shopify tax adjustment before recalculating it
Closes #14143
(grafted from 27d0430555b070fcca637c9a0dab40c083d7db15)

--HG--
branch : 7.0
2025-08-21 10:38:46 +02:00
Cédric Krier b80eb0af20 Reset to draft sales updated from Shopify
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
2025-07-02 13:25:56 +02:00
Cédric Krier 1761ffeab3 Reset to quotation Shopify sale with insufficient authorized payment amount
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
2025-04-03 17:21:15 +02:00
Cédric Krier faf3bc3966 Do not fetch Shopify locations without session parameters
Closes #13888
(grafted from 667e32ccbbeef4976117078240b1b98cf20e3449)

--HG--
branch : 7.0
2025-02-25 16:19:53 +01:00
Cédric Krier a0c723970f Test if Shopify attribute is not empty before using it
Shopify seems to have changed from not setting empty attributes to setting
them empty.

Closes #12097
2023-02-17 12:07:43 +01:00
Cédric Krier ca02b37147 Prepare migration to monorepo 2022-12-16 14:53:41 +01:00