cedricyeeky / orbital_NUShopLah-

0 stars 1 forks source link

Bug: Activity Screen: Points Transaction of 0 points is rendered with Voucher Transaction properties #14

Closed freddychenyouren2 closed 1 year ago

freddychenyouren2 commented 1 year ago

One user during User Testing conducted a Point Transaction with Original Price of $0.22. This causes the points awarded to Customer to be 0 Points. It is fine up till this stage. The issue comes when this is logged in the Activity Screen of both Customer and Seller where it is rendered as a Percentage Voucher Transaction instead.

We need to check how it is being rendered.

freddychenyouren2 commented 1 year ago

Update: This issue was discovered on 12 July 2023, during a User Testing, where the tester made the exceptional case and discovered this bug.

We have managed to identify how to fix this bug. It appears that we used pointsAwarded field from a Transaction object to determine if it should be a Points Transaction or a Voucher Transaction. We should use stronger defining property that differentiates between a Points Transaction and a Voucher Transaction, by simply checking the transactionType field instead.

This issue has been solved.