feat(admin): move allow_update_discount option to product level
All checks were successful
Staging Build / build (push) Successful in 2m50s

This commit is contained in:
DanielS
2026-07-10 09:15:34 +02:00
parent bc6487bba4
commit 27fe6c6eef
7 changed files with 39 additions and 31 deletions

View File

@@ -389,7 +389,7 @@ export function OrderWizard({
})
const totalItem = base + modulesSum
if (prod.billing_interval === 'one_time') {
const allowDiscount = (cat as any).allow_update_discount !== false
const allowDiscount = (prod as any).allow_update_discount !== false
const finalItemTotal = allowDiscount ? (totalItem * updatePriceModifier.multiplier) : totalItem
oneTime += finalItemTotal
} else {