fix: correct calculations of subtotal for shipping option requirements (#7089)
* fix: correct calculations of subtotal for shipping option requirements * Add changeset
This commit is contained in:
5
.changeset/lemon-forks-collect.md
Normal file
5
.changeset/lemon-forks-collect.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/medusa": patch
|
||||
---
|
||||
|
||||
fix: correct calculations of subtotal for shipping option requirements
|
||||
@@ -398,7 +398,7 @@ class ShippingOptionService extends TransactionBaseService {
|
||||
)
|
||||
}
|
||||
|
||||
const amount = option.includes_tax ? cart.total! : cart.subtotal!
|
||||
const amount = option.includes_tax ? (cart.subtotal! + cart.item_tax_total!) : cart.subtotal!
|
||||
|
||||
const requirementResults: boolean[] = option.requirements.map(
|
||||
(requirement) => {
|
||||
|
||||
Reference in New Issue
Block a user