Order Notification Consolidated
Consolidated Order Notification System for Renewals, Terminations, and Commissions
Overview
To improve clarity, reduce notification noise, and ensure time-consistent and timezone-accurate records, we’ve implemented a consolidated notification system for order renewals, terminations, and commissions. This system sends a single email (and SMS, if configured) per day per account, summarizing all applicable actions.
Key Highlights
✅ Single Email Notification per Event Type (Renewal/Termination/Commission)
✅ PDF Summary Attachments
✅ Timezone-Aware Display in GUI
✅ Auto-Purge of Attachments
✅ 1. Daily Order Processed Summary Notification
When sent: Once per day after order processing (renewal or termination).
Includes: All processed orders for the account (renewed, terminated, failed).
Format (Attachment):
Product Name | Product Type | Order ID | Billing Type | Status | Next Renewal Date | Remarks |
---|---|---|---|---|---|---|
123446 | DID | #orderid1 | One-time | Terminated | NA | NA |
Free-calls | Package | #orderid3 | Recurring | Renewed | 16-02-2024 | - |
100-calls | Package | #orderid4 | Recurring | Failed | 16-02-2024 | Insufficient Funds |
Email Template:
Subject: Summary of Orders Processed on DD-MM-YYYY – Account #ACCOUNT_NUMBER#
Body:
Dear #NAME#,
We are pleased to inform you that 49 orders associated with Account Number: #ACCOUNT_NUMBER# have been successfully processed on DD-MM-YYYY. These include both renewals and terminations.
Please refer to the attached Order Summary for more details.
Thank you for choosing #COMPANY_NAME#.Attachment: Order_Summary_Account_#ACCOUNT_NUMBER#_DD-MM-YYYY.csv/pdf
📅 2. Daily Renewal Reminder Notification
When sent: 2–3 days before the scheduled renewal date.
Includes: All upcoming order renewals for the account.
Email Template:
Subject: Reminder: Upcoming Renewals for DD-MM-YYYY – Account #ACCOUNT_NUMBER#
Body:
Dear #NAME#,
This is a friendly reminder that 15 orders linked to your Account Number: #ACCOUNT_NUMBER# are scheduled for renewal on DD-MM-YYYY.
Please ensure your account has sufficient balance to avoid disruption.Attachment: Upcoming_Renewals_Account_#ACCOUNT_NUMBER#_DD-MM-YYYY.csv/pdf
🤝 3. Reseller Commission Summary Notification
When sent: Once per day when their customers' orders are processed.
Includes: Commission details for DID-based order renewals and terminations.
Important Filtering Rules:
❌ Does NOT include package or subscription category orders.
Email Template:
Subject: Commission Summary for Orders Processed on DD-MM-YYYY – Account #ACCOUNT_NUMBER#
Body:
Dear #NAME#,
A total of 49 orders from your customers were processed today under Account #ACCOUNT_NUMBER#. You have earned $X in commission.Attachment: Commission_Summary_Account_#ACCOUNT_NUMBER#_DD-MM-YYYY.csv/pdf
🔁 Order Handling & Timezone Improvements
✔️ Time Consistency Across Systems
When a customer of a reseller places an order, the exact same timestamp is recorded in the reseller’s portal.
✔️ GUI Timezone Support
In the Order Details page, timestamps are now displayed in the customer’s timezone for clarity and accuracy.
🔁 Notification Behavior for Resellers
📌 Notification Filter Enhancements:
✅ DID Renewals & Reminders → Sent to Reseller
❌ Packages & Subscriptions → NOT Sent to Reseller
📝 Note on DID Order Flow
When a reseller purchases a DID, the order is placed directly under the reseller’s account.
🧹 Purge Settings for Order Attachments
New Setting: Delete Order Attachments After Days
Tooltip:
This setting defines how many days to retain order-related summary attachments. After this period, files are automatically deleted to maintain system hygiene. This applies to:
Order Processed Summary
Upcoming Renewal Reminder Summary
Reseller Commission Summary
Attachment Path:/opt/ASTPP/web_interface/astpp/attachment/
If Attachment is Deleted:
This attachment was automatically deleted as it exceeded the retention period of #X_DAYS# days.