How to deduct class hours for multiple orders of the same course
Scenario: A student's purchased course package has insufficient remaining hours, so they purchase a new package. This means that multiple orders for the same course and the same student exist in order management.
The system prioritizes deducting hours from the earlier order based on its purchase date, and only deducts hours from the newly purchased order after all remaining hours have been deducted.





