3 <title>Earned Commissions</title>
4 <name>EarnedCommissions</name>
5 <description></description>
8 <topmargin>50</topmargin>
9 <bottommargin>50</bottommargin>
10 <rightmargin>50</rightmargin>
11 <leftmargin>50</leftmargin>
14 <sql>SELECT <? if exists("salesrep_id") ?>
15 ( SELECT salesrep_name
17 WHERE (salesrep_id=<? value("salesrep_id") ?>) )
19 text('All Sales Reps')
22 formatDate(<? value("startDate") ?>) AS startdate,
23 formatDate(<? value("endDate") ?>) AS enddate;</sql>
25 <querysource loadFromDb="true" >
27 <mqlgroup>salesHistory</mqlgroup>
28 <mqlname>detail</mqlname>
42 <weight>normal</weight>
46 <string>Invc. Date</string>
58 <weight>normal</weight>
62 <string>Cust. #</string>
74 <weight>normal</weight>
96 <column>startdate</column>
109 <weight>normal</weight>
113 <string>Qty.</string>
125 <weight>normal</weight>
129 <string>Start Date:</string>
141 <weight>normal</weight>
145 <string>S/O #</string>
157 <weight>normal</weight>
161 <string>Item Number</string>
173 <weight>bold</weight>
179 <column>enddate</column>
192 <weight>normal</weight>
196 <string>Base Ext. Price</string>
208 <weight>normal</weight>
212 <string>Sales Rep:</string>
224 <weight>normal</weight>
228 <string>End Date:</string>
240 <weight>bold</weight>
246 <column>salesrep</column>
266 <weight>normal</weight>
270 <string>Ship-to</string>
282 <weight>bold</weight>
286 <string>Earned Commissions</string>
298 <weight>normal</weight>
302 <string>Sales Rep.</string>
314 <weight>normal</weight>
318 <string>Base Commision</string>
337 <weight>normal</weight>
341 <string>Sales Rep.</string>
353 <weight>normal</weight>
357 <string>Invc. Date</string>
369 <weight>normal</weight>
373 <string>Commision</string>
385 <weight>normal</weight>
389 <string>S/O #</string>
408 <weight>normal</weight>
412 <string>Qty.</string>
424 <weight>normal</weight>
428 <string>Cust. #</string>
440 <weight>normal</weight>
444 <string>Ext. Price</string>
456 <weight>normal</weight>
460 <string>Item Number</string>
472 <weight>normal</weight>
476 <string>Paid</string>
488 <weight>normal</weight>
492 <string>Ship-to</string>
499 <query>detail</query>
512 <weight>bold</weight>
517 <query>detail</query>
518 <column>item_number</column>
531 <weight>bold</weight>
536 <query>detail</query>
537 <column>f_baseextprice</column>
550 <weight>bold</weight>
555 <query>detail</query>
556 <column>cust_number</column>
569 <weight>bold</weight>
574 <query>detail</query>
575 <column>cohist_ordernumber</column>
588 <weight>bold</weight>
593 <query>detail</query>
594 <column>f_commissionpaid</column>
607 <weight>bold</weight>
612 <query>detail</query>
613 <column>salesrep_name</column>
626 <weight>bold</weight>
631 <query>detail</query>
632 <column>f_invcdate</column>
645 <weight>bold</weight>
650 <query>detail</query>
651 <column>f_qtyshipped</column>
664 <weight>bold</weight>
669 <query>detail</query>
670 <column>f_basecommission</column>
683 <weight>bold</weight>
688 <query>detail</query>
689 <column>cohist_shiptoname</column>
706 <weight>normal</weight>
710 <string>Report Date:</string>
722 <weight>normal</weight>
726 <string>Page:</string>
738 <weight>bold</weight>
743 <query>Context Query</query>
744 <column>report_date</column>
757 <weight>bold</weight>
762 <query>Context Query</query>
763 <column>page_number</column>
779 <weight>normal</weight>
783 <string>Totals:</string>
795 <weight>bold</weight>
800 <query>detail</query>
801 <column>baseextprice</column>
803 <tracktotal builtin="true" >qty</tracktotal>
815 <weight>bold</weight>
820 <query>detail</query>
821 <column>basecommission</column>
823 <tracktotal builtin="true" >qty</tracktotal>