fix(core-flows,utils,medusa): fix bug where payment collection across orders were getting updated (#8401)

This took embarrassingly long to debug. :|

what:

- fixes a bug where the payment collection of other orders were getting updated
- adds order status to payments section

<img width="1069" alt="Screenshot 2024-08-02 at 08 37 38" src="https://github.com/user-attachments/assets/31776bd3-e6b9-4d23-8be6-f972f7316cf3">
<img width="1072" alt="Screenshot 2024-08-02 at 08 37 48" src="https://github.com/user-attachments/assets/38cdd8a1-9f31-4920-91bf-a3554e298960">
This commit is contained in:
Riqwan Thamir
2024-08-02 10:34:42 +02:00
committed by GitHub
parent 3a068c6b27
commit ce8c90838d
7 changed files with 301 additions and 20 deletions

View File

@@ -48,6 +48,8 @@ export const defaultAdminRetrieveOrderFields = [
"*shipping_methods.tax_lines",
"*shipping_methods.adjustments",
"*payment_collections",
"*payment_collections.payments",
"*payment_collections.payments.refunds",
]
export const retrieveTransformQueryConfig = {