Bug 642

Summary: Incorrect delivery mode displayed in History page
Product: Group31Bullship Reporter: Matthew Chan <tnchan27-c>
Component: TransactionAssignee: Dennis Lai <cslai26-c>
Status: RESOLVED FIXED    
Severity: major CC: psjim2-c
Priority: ---    
Version: Demo 1.0   
Hardware: All   
OS: All   
Attachments: Wrong delivery mode and delivery fee

Description Matthew Chan 2021-12-04 16:14:14 HKT
Created attachment 98 [details]
Wrong delivery mode and delivery fee

Problem description:
Wrong delivery mode is inputted and displayed on the History page, which also leads to the incorrect delivery fee

Step to reproduce:
1. Select the individual transport or emergency transport under the fast transport option
2. Change the option back to the mass transport option
3. Click the button 'Add and Create transaction'
4. Checked in the History page, wrong delivery mode and delivery fee are displayed
 
Actual result:
Orders with delivery mode 'EMER' and delivery fee of $114.4 are displayed
(Order details: weight: 1944g, start point: 1 Tuen Mun, end point: 10 Tsim Sha Tsui, delivery mode: Mass transport)

Expected result:
Orders with delivery mode 'MASS' and delivery fee of $61.7 should be displayed
(Order details: weight: 1944g, start point: 1 Tuen Mun, end point: 10 Tsim Sha Tsui, delivery mode: Mass transport)
Comment 1 SamJim 2021-12-04 17:47:19 HKT
This problem is caused by not clearing the option (emergency/ individual) under fast transport if the delivery mode is changed back to mass transport, which leads to wrong calculation of delivery fee. 
The problem is fixed by clearing emergency/ individual transport option before switching another delivery mode. Correct delivery mode and fee are displayed in the History page.