feat(shop): move linked fee configuration to product level
All checks were successful
Staging Build / build (push) Successful in 2m52s

This commit is contained in:
DanielS
2026-07-22 17:04:38 +02:00
parent 06cba405f3
commit f130f24c86
6 changed files with 51 additions and 39 deletions

View File

@@ -429,6 +429,10 @@ export function OrderWizard({
oneTime += basePrice
}
if (prod.linked_fee_product_id) {
feeProductIds.add(prod.linked_fee_product_id)
}
// Module
sel.moduleIds?.forEach((mId: string) => {
const mod = prod.modules?.find(m => m.id === mId)
@@ -439,10 +443,6 @@ export function OrderWizard({
} else {
oneTime += mod.price * qty
}
if (mod.linked_fee_product_id) {
feeProductIds.add(mod.linked_fee_product_id)
}
}
})
})