Feature #7324
openChange share the service subscription flow
Related issues
Updated by Ajit A about 1 month ago
- Status changed from New to In Progress
- Estimated time set to 4:00 h
started working on this
Updated by Ajit A about 1 month ago
- Due date set to 02/04/2026
- % Done changed from 0 to 60
- Estimated time changed from 4:00 h to 12:00 h
- 1. SubscriptionCustomerInfo.tsx (Major Changes)
- Enhanced form validation with real-time error handling for all fields
- Added new address fields: `street2` (Apartment/Suite), `addressType`, and `country`
- Improved customer information form with better validation:
- Email validation with regex pattern
- Phone number validation (required, 10-digit minimum)
- Zip code validation with format checking (12345 or 12345-6789)
- Address field validation (all fields now required)
- Added pricing breakdown section showing subtotal, tax (7%), and total
- Enhanced error state management with separate field and address error states
- Improved user experience with onBlur and onChange validation
- 2. Header.tsx (Worker Header)
- Simplified logout function to use `localStorage.clear()` and `sessionStorage.clear()` instead of removing individual items
- More efficient and cleaner code
- 3. api.tsx (API Utilities)
- Enhanced `removeToken()` function to clear all localStorage and sessionStorage items
- Ensures complete cleanup on logout
- 4. AddressAutocomplete.tsx (Address Component)
- Fixed issue where manual typing would clear city/state/zipcode fields
- Improved autocomplete behavior to only update address when suggestion is selected
- Updated styling (removed green hover effects, improved focus states)
- 5. PaymentManagement.tsx
- Enhanced payment management functionality
- 6. InvoicePublicUrl.tsx & PublicUrl.tsx
- Improvements to public invoice and quote URL pages
- 7. SubscriptionResultPage.tsx
- Enhanced subscription result page functionality
- 8. ServicePlanSelection.tsx & ServicePlansPublic.tsx
- Improvements to service plan selection and public pages
- Backend Changes Summary
- Files Modified: 2 files
- Lines Changed: +267 insertions, -120 deletions
- 1. subscripiton.service.js (Subscription Service - Major Changes)
- Enhanced Auto-Payment Processing:
- Added fallback invoice creation when scheduled invoice doesn't exist for on-store contracts
- Automatically creates invoice for current billing cycle if missing
- Improved error handling with defensive date calculations
- Added fallback amount calculation using contract totalAmount- Next Cycle Invoice Creation:
- Automatically creates invoice for next billing cycle after payment processing
- Prevents duplicate invoice creation by checking existing invoices
- Links next cycle invoice to subscription contract
- Calculates next billing period based on contract frequency
- Sets proper invoice status (SCHEDULED) for next cycle- New Field Added:
- Added `visitsPerCycle` field to variant data in `getPublicServicePlans` function- Improved Logging:
- Enhanced logging for invoice creation and payment processing
- Better error messages and success confirmations
- 2. otp.ejs (OTP Email Template)
- Complete Email Template Redesign:
- Added responsive viewport meta tag
- Improved email layout and structure
- Enhanced styling with better color scheme and spacing
- Added logo section with dynamic company logo support
- Improved typography and readability
- Better mobile responsiveness
- Enhanced footer styling
- Improved button styling and spacing
- Added "Didn't request this?" section with support contact link
- Added "Visit Our Website" button
- Updated footer copyright text
- Improved overall visual hierarchy
Updated by Ajit A about 1 month ago
- Estimated time changed from 12:00 h to 16:00 h
started working on new customer verification flow
Updated by Ajit A about 1 month ago
- Status changed from In Progress to Resolved
- % Done changed from 60 to 100
Completed