fix: update redemption count when payment received
This commit is contained in:
@@ -120,30 +120,6 @@ watch(
|
||||
|
||||
const saveItems = (parent = null) => {
|
||||
return rows.value
|
||||
/* for (const row of rows.value) {
|
||||
if (row.name) {
|
||||
await applicableItems.setValue.submit({
|
||||
...row,
|
||||
}, {
|
||||
onSuccess() {
|
||||
props.coupons.reload()
|
||||
applicableItems.reload()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
await applicableItems.insert.submit({
|
||||
...row,
|
||||
parent: parent,
|
||||
parenttype: 'LMS Coupon',
|
||||
parentfield: 'applicable_items',
|
||||
}, {
|
||||
onSuccess() {
|
||||
props.coupons.reload()
|
||||
applicableItems.reload()
|
||||
}
|
||||
})
|
||||
}
|
||||
} */
|
||||
}
|
||||
|
||||
const removeRow = (rowToRemove: any) => {
|
||||
|
||||
@@ -29,7 +29,6 @@ const props = defineProps<{
|
||||
}>()
|
||||
|
||||
const updateStep = (newStep: 'list' | 'new' | 'edit', newData: Coupon) => {
|
||||
console.log('Updating step to:', newStep, newData)
|
||||
step.value = newStep
|
||||
if (newData) {
|
||||
data.value = newData
|
||||
|
||||
Reference in New Issue
Block a user