Files
medusa-store/.changeset/fifty-cooks-occur.md
Adrien de Peretti e64823d1b9 fix(medusa): totals calculation with gift card (#5075)
**What**
Resolve potential discrepency between what is calculated in the `createFromCart` and the cart/order totals calculation.
When the giftCard is taxable then the following calculation is applied 
```ts
cart.subtotal + cart.shipping_total - cart.discount_total
```
otherwise
```ts
 cart.subtotal +
          cart.shipping_total +
          cart.tax_total -
          cart.discount_total
```

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-10-25 10:29:30 +00:00

82 B

@medusajs/medusa
@medusajs/medusa
patch

fix(medusa): totals calculation with gift card