Improve cancelled order display and add notes to order detail

- Add "Catatan" field display in consulting order detail page
- Add dedicated "Cancelled Order" section with rebooking option
- Update status alert to show proper message for cancelled orders
- Refactor edge function to focus on calendar cleanup only
- Set payment_status to 'failed' when auto-cancelling expired orders

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
dwindown
2025-12-28 21:36:01 +07:00
parent 3eb53406c9
commit ac88e17856
4 changed files with 206 additions and 77 deletions

View File

@@ -0,0 +1,13 @@
-- ============================================
-- Remove pg_cron job (migrating to Coolify-only approach)
-- ============================================
-- We're moving all cron jobs to Coolify for single source of truth
-- Remove the pg_cron job
SELECT cron.unschedule('cancel-expired-consulting-orders');
-- Verify it's removed
SELECT jobname, schedule, command
FROM cron.job
WHERE jobname LIKE 'cancel-expired%';
-- Should return 0 rows