| @@ -104,8 +104,9 @@ | ||
| 104 | 104 | const RecurringRuleForm = lazy(() => import("./pages/RecurringRuleForm")); |
| 105 | 105 | const Whatsapp = lazy(() => import("./pages/Whatsapp")); |
| 106 | 106 | const ChannelManager = lazy(() => import("./pages/ChannelManager")); |
| 107 | 107 | const Webhooks = lazy(() => import("./pages/Webhooks")); |
| 108 | +const ScheduledPayments = lazy(() => import("./pages/ScheduledPayments")); | |
| 108 | 109 | const TripConsentForm = lazy(() => import("./pages/TripConsentForm")); |
| 109 | 110 | const BookingForm = lazy(() => import("./pages/BookingForm")); |
| 110 | 111 | const ViewBooking = lazy(() => import("./pages/ViewBooking")); |
| 111 | 112 | const AvailabilityForm = lazy(() => import("./pages/AvailabilityForm")); |
| @@ -353,8 +354,13 @@ | ||
| 353 | 354 | return <DiscountForm />; |
| 354 | 355 | } |
| 355 | 356 | return <Discounts />; |
| 356 | 357 | case "payments": |
| 358 | + // Scheduled balance payments (Pro module) live under Payments as a tab. | |
| 359 | + // Checked before the action branches because this tab has no forms. | |
| 360 | + if (tab.toLowerCase() === "scheduled") { | |
| 361 | + return <ScheduledPayments />; | |
| 362 | + } | |
| 357 | 363 | // Check if we're viewing, creating, or editing a payment |
| 358 | 364 | if (action === "view") { |
| 359 | 365 | return <ViewPayment />; |
| 360 | 366 | } |