Bug 769 - Incorrect commission value in monthly summary in the admin panel
Summary: Incorrect commission value in monthly summary in the admin panel
Status: CONFIRMED
Alias: None
Product: Testing_1104
Classification: Unclassified
Component: test (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- major
Assignee: shukhyiu2-c
URL:
Depends on:
Blocks:
 
Reported: 2023-11-05 12:14 HKT by shukhyiu2-c
Modified: 2023-11-05 12:35 HKT (History)
1 user (show)

See Also:


Attachments
screenshot of actual result (118.37 KB, image/png)
2023-11-05 12:14 HKT, shukhyiu2-c
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shukhyiu2-c 2023-11-05 12:14:22 HKT
Created attachment 146 [details]
screenshot of actual result

Description: 
Overview: 
The commission value is calculated incorrectly in the admin panel. 

Steps to Reproduce: 
1. login as admin
2. select "Check Monthly Summary"
3. select a year and month with existing records in the drop-down list (e.g. Year: 2023 Month: 10 (Retrieved 2023-11-05 from the database))

Actual Results: 
Hairdresser ID:	Name:	Number of Booking	Grand Total	Commission
3				John	2					700			0
The screenshot of actual result is also attached for references (admin_monthly_summary.png).

Expected Results: 
The commission for hairdresser_id 3 should be 350 (Grand Total : 700, Commission Rate: 50% (Retrieved 2023-11-05 from the database)).
Hairdresser ID:	Name:	Number of Booking	Grand Total	Commission
3				John	2					700			350

Build Date & Hardware: 
Build 2023-11-05 on Mac OS 13.1