JusanSG In Foodomaa, commission is calculated as
OrderTotal - (Delivery Charges + Tip Amount) * Commission rate/100
By that logic
(335 - (20 + 15)) * 15/100 = 300 * 0.15 = 45
I hope now its clear to you how commission is being calculated. I have to make my reports' formulae same as it is being done in Foodomaa.