New Feature #
๐ Sorting Activity Log System (NEW) #
A comprehensive logging system has been introduced to improve transparency and audit control within sorting operations.
๐ Location:
Staff Portal โ Integrations โ Sorting โ Sorting Activity Log
๐ Data Tracked:
- Opening & re-opening of sorting sessions
- Adding & editing sorting devices (Device ID, IP Address, Device Name)
- Order dispatches from sub-buckets (A1, B2, C3, etc.)
- Sorting system errors and payload logs during sorting
๐ Table Includes:
- Log Type
- User Details (Name, Email, Employee Number)
- Old Data vs. New Data comparison
- Exact Date & Time
๐ Utilities:
- Date range filter
- Downloadable log export (Audit-ready)

๐ธ Proof Upload for โFailed to Deliver.โ #
Staff can now upload supporting evidence when marking orders as Failed to Deliver.
๐ Upload Constraints:
- Maximum 4 images
- Maximum 5MB per image
๐ Workflow:
- Preview images before submission
- Delete images if needed
- Proof accessible via the View Order modal after submission
This enhances dispute resolution and audit compliance. ๐ก

Improvements #
๐ Multi-Select Filters in โAll Ordersโ Table #
Enhanced filtering capabilities for complex data analysis.
โ Users can now:
- Select multiple Merchants
- Select multiple Destination Warehouses
๐ง Dynamic Filtering Logic:
- When multiple merchants are selected, the Merchant Business dropdown auto-filters to display only related businesses.

๐ Enhanced Merchant Details #
The Merchant Phone Number is now visible in the View Order modal.
๐ Located under:
- Merchant Details
- Alongside Pickup Address & City
Enables faster merchant communication.

โ Conditional โView Signatureโ Button in Delivered Status #
To improve UX clarity:
- The View Signature button now appears only if a signature exists for delivered orders.
- If no signature was captured, the button remains hidden.
๐ Optimized Remarks Loading #
Improved user experience in the General Remarks tab.
๐ Previously: Endless loading spinner
โ
Now: Displays message
โThis order has no record remark history.โ

๐ OCR API Configuration Management #
The OCR โScan Image Uploadโ API configuration has been moved to the .env file.
๐ฏ Benefits:
- Improved security
- Better performance
- Easier environment management (Dev / Staging / Production)
Bugs #
๐ Order Status Duplication Issue Fix #
Fixed a critical issue where:
- Long waybill series
- Auto-Submit enabled
Could cause duplicate status entries.
โ Now prevents:
- Double submission
- Duplicate status history records
- In These Statuses
- PICKED UP FROM MERCHANT
- DISPATCH TO ORIGIN WAREHOUSE
- RECEIVED AT DESTINATION WAREHOUSE
- DELIVERED
- RETURN TO SORTING WAREHOUSE
- RECEIVED TO SORTING WAREHOUSE (FAILED TO DELIVER)
- RETURN TO MERCHANT
- RECEIVED FAILED BY WALKING CUSTOMER
- RETURN DISPATCHED TO ORIGIN WAREHOUSE
- RETURN TO SORTING WAREHOUSE (INVALID DESTINATION)
- RECEIVED TO ORIGIN WAREHOUSE (FAILED TO RETURN)
- DISPATCH TO DESTINATION WAREHOUSE
- RECEIVED AT SORTING WAREHOUSE
- RECEIVE FAILED ORDER
- CANCELLED
๐ฉ Order Flag Visibility #
Resolved issue where order flags (Urgent, Future Delivery, etc.) were not appearing in the View Order header.
โ Flags now visible to:
- Staff
- Merchants

๐ฐ Rider Commission Display #
Fixed front-end issue in Staff Management Rider Role.
๐ง Previously:
- The commission column always showed โNoโ
โ Now:
- Correctly reflects โYes/Noโ based on rider configuration.
๐ Excel Export Alignment #
Resolved alignment issue in Single Page Excel exports.
โ Previously:
- Special characters (#, -, ,) in descriptions caused row break issues.
โ Now:
- Data sanitization ensures proper single-row alignment for every order.