I have written this code. The issue is I dont know how to get the net profit. How can I get net profit by adding counter margin profit + room sales - expences- salariese. Kindly help.
[ACCOUNTS SUMMARY:2,1]
COUNTER MARGIN PROFIT|{REPORT COST DETAILS:[([C.AvgPrice][C.Quantity]).Sum]-[([C.Cost][C.Quantity]).Sum]}
ROOM SALES|{REPORT ORDER DETAILS:O.TotalPrice.sum:(DE=ROOMS)}
EXPENCES|{ACCOUNT TOTAL:EXPENCES ACCOUNT}
SALARIES|{ACCOUNT TOTAL:Salary Accounts}
TOTAL PROFIT|