Problem in Salesperson commission report
I am working on Salesperson commission report and because of some complications in individual transactions I am having difficulty in creating final amount of the salesperson commission.
The scenario is, each sales person has more than one customer and each customer has more than one invoices, each invoice contains just one $ amount of the transaction but contains more than one miscellaneous charges and tax amount. The percentage commission rate is different for each invoice that should be applied on invoice amount minus totals of all related miscellaneous charge and taxes of that invoice.
Report Requirement: Calculate commissionable amount and net commission of each invoice, Salesperson and Grand total of all sales person.
Logic used: I have groups on Salesperson, Invoice and Invoice amount, I calculated running totals of Miscellaneous charges and tax amount grouped by each invoice amount group and got net commission by multiplying related rate, its working fine.
Problem: I need to produce Totals on each Salesperson and all salespersons, when I tried to produce further running total of each invoice it does not allow me. And I can not produce required totals on individual transaction because of single invoice amount and multiple miscellaneous charges plus tax amount that gives me commissionable amount.
I will appreciate if somebody has idea how to get salesperson commission total and grand total ?
I am working on Salesperson commission report and because of some complications in individual transactions I am having difficulty in creating final amount of the salesperson commission.
The scenario is, each sales person has more than one customer and each customer has more than one invoices, each invoice contains just one $ amount of the transaction but contains more than one miscellaneous charges and tax amount. The percentage commission rate is different for each invoice that should be applied on invoice amount minus totals of all related miscellaneous charge and taxes of that invoice.
Report Requirement: Calculate commissionable amount and net commission of each invoice, Salesperson and Grand total of all sales person.
Logic used: I have groups on Salesperson, Invoice and Invoice amount, I calculated running totals of Miscellaneous charges and tax amount grouped by each invoice amount group and got net commission by multiplying related rate, its working fine.
Problem: I need to produce Totals on each Salesperson and all salespersons, when I tried to produce further running total of each invoice it does not allow me. And I can not produce required totals on individual transaction because of single invoice amount and multiple miscellaneous charges plus tax amount that gives me commissionable amount.
I will appreciate if somebody has idea how to get salesperson commission total and grand total ?