Bug 642 - Incorrect delivery mode displayed in History page
Summary: Incorrect delivery mode displayed in History page
Status: RESOLVED FIXED
Alias: None
Product: Group31Bullship
Classification: Unclassified
Component: Transaction (show other bugs)
Version: Demo 1.0
Hardware: All All
: --- major
Assignee: Dennis Lai
URL:
Depends on:
Blocks:
 
Reported: 2021-12-04 16:14 HKT by Matthew Chan
Modified: 2021-12-04 17:49 HKT (History)
1 user (show)

See Also:


Attachments
Wrong delivery mode and delivery fee (60.75 KB, image/png)
2021-12-04 16:14 HKT, Matthew Chan
Details

Note You need to log in before you can comment on or make changes to this bug.
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.