fix: update redemption count when payment received

This commit is contained in:
Jannat Patel
2025-11-13 14:50:55 +05:30
parent 2aac558d4a
commit 90e4097fa3
3 changed files with 59 additions and 66 deletions

View File

@@ -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) => {

View File

@@ -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