3 <title>Sales History</title>
4 <name>SalesHistory</name>
5 <description></description>
14 <topmargin>50</topmargin>
15 <bottommargin>50</bottommargin>
16 <rightmargin>50</rightmargin>
17 <leftmargin>50</leftmargin>
18 <querysource loadFromDb="true">
20 <mqlgroup>salesHistory</mqlgroup>
21 <mqlname>detail</mqlname>
25 <sql>SELECT <? if exists("showPrices") ?>
26 text('Unit Price') AS lbl_unitprice,
27 text('Total') AS lbl_total
29 text('') AS lbl_unitprice,
49 <string>Sales History</string>
61 <weight>normal</weight>
67 <column>lbl_total</column>
80 <weight>normal</weight>
84 <string>Doc. #</string>
96 <weight>normal</weight>
100 <string>Ord. Date</string>
112 <weight>normal</weight>
116 <string>Description</string>
128 <weight>normal</weight>
132 <string>Item Number</string>
144 <weight>normal</weight>
148 <string>Shipped</string>
160 <weight>normal</weight>
164 <string>Invoice #</string>
183 <weight>normal</weight>
189 <column>lbl_unitprice</column>
202 <weight>normal</weight>
206 <string>Invc. Date</string>
215 <bottompad>12</bottompad>
219 <weight>bold</weight>
224 <query>Parameter Query</query>
225 <column>filter</column>
245 <weight>normal</weight>
249 <string>Invc. Date</string>
261 <weight>normal</weight>
265 <string>Invoice #</string>
277 <weight>normal</weight>
281 <string>Doc. #</string>
293 <weight>normal</weight>
297 <string>Shipped</string>
309 <weight>normal</weight>
315 <column>lbl_total</column>
328 <weight>normal</weight>
332 <string>Item Number</string>
351 <weight>normal</weight>
355 <string>Description</string>
367 <weight>normal</weight>
373 <column>lbl_unitprice</column>
386 <weight>normal</weight>
390 <string>Ord. Date</string>
410 <weight>bold</weight>
415 <query>detail</query>
416 <column>baseextprice</column>
418 <format builtin="true">money</format>
431 <weight>normal</weight>
435 <string>Total Sales:</string>
441 <query>detail</query>
454 <weight>bold</weight>
459 <query>detail</query>
460 <column>item_descrip1</column>
473 <weight>bold</weight>
478 <query>detail</query>
479 <column>cohist_ordernumber</column>
492 <weight>bold</weight>
497 <query>detail</query>
498 <column>item_descrip2</column>
511 <weight>bold</weight>
516 <query>detail</query>
517 <column>f_baseunitprice</column>
530 <weight>bold</weight>
535 <query>detail</query>
536 <column>f_orderdate</column>
549 <weight>bold</weight>
554 <query>detail</query>
555 <column>f_qtyshipped</column>
575 <weight>bold</weight>
580 <query>detail</query>
581 <column>f_invcdate</column>
594 <weight>bold</weight>
599 <query>detail</query>
600 <column>itemnumber</column>
613 <weight>bold</weight>
618 <query>detail</query>
619 <column>f_baseextprice</column>
632 <weight>bold</weight>
637 <query>detail</query>
638 <column>invoicenumber</column>
655 <weight>normal</weight>
659 <string>Report Date:</string>
671 <weight>bold</weight>
676 <query>Context Query</query>
677 <column>page_number</column>
690 <weight>normal</weight>
694 <string>Page:</string>
706 <weight>bold</weight>
711 <query>Context Query</query>
712 <column>report_date</column>