Files
medusa-store/packages
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
..
2023-10-19 15:58:48 +02:00
2023-10-19 15:58:48 +02:00
2023-10-19 15:58:48 +02:00
2023-10-19 15:58:48 +02:00
2023-10-19 15:58:48 +02:00
2023-10-19 15:58:48 +02:00
2023-10-19 15:58:48 +02:00
2023-10-19 15:58:48 +02:00