fix(core-flows): Add discountable properties in queried fields to avoid overriding discountable properties when set (#14105)
* Add discountable properties to avoid applying adjustments to non discountable line items * Add changeset
This commit is contained in:
5
.changeset/rare-symbols-stare.md
Normal file
5
.changeset/rare-symbols-stare.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/core-flows": patch
|
||||
---
|
||||
|
||||
fix(core-flows): Add discountable properties in queried fields to avoid overriding discountable properties when set
|
||||
@@ -4,6 +4,7 @@ export const productVariantsFields = [
|
||||
"sku",
|
||||
"manage_inventory",
|
||||
"allow_backorder",
|
||||
"is_discountable",
|
||||
"barcode",
|
||||
"product.id",
|
||||
"product.title",
|
||||
@@ -15,6 +16,7 @@ export const productVariantsFields = [
|
||||
"product.type.id",
|
||||
"product.collection.title",
|
||||
"product.handle",
|
||||
"product.discountable",
|
||||
"inventory_items.inventory_item_id",
|
||||
"inventory_items.required_quantity",
|
||||
"inventory_items.inventory.requires_shipping",
|
||||
|
||||
Reference in New Issue
Block a user