feat(admin): move allow_update_discount option to product level
All checks were successful
Staging Build / build (push) Successful in 2m50s
All checks were successful
Staging Build / build (push) Successful in 2m50s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user