3 <title>Brief Sales History</title>
4 <name>BriefSalesHistory</name>
5 <description></description>
14 <topmargin>50</topmargin>
15 <bottommargin>50</bottommargin>
16 <rightmargin>50</rightmargin>
17 <leftmargin>50</leftmargin>
20 <sql>SELECT <? if exists("startDate") ?>
21 formatDate(date(<? value("startDate") ?>))
24 <? endif ?> AS startDate,
25 <? if exists("endDate") ?>
26 formatDate(date(<? value("endDate") ?>))
29 <? endif ?> AS endDate,
30 <? if exists("showPrices") ?>
31 text('Unit Price') AS lbl_unitprice,
32 text('Total') AS lbl_total,
34 text('') AS lbl_unitprice,
35 text('') AS lbl_total,
37 <? if exists("warehous_id") ?>
38 (SELECT warehous_code FROM whsinfo WHERE warehous_id=<? value("warehous_id") ?>)
43 <? if exists("cust_id") ?>
44 (SELECT cust_name FROM custinfo WHERE cust_id=<? value("cust_id") ?>)
49 <? if exists("custtype_id") ?>
50 (SELECT custtype_code FROM custtype WHERE custtype_id=<? value("custtype_id") ?>)
52 text('All Customer Types')
55 <? if exists("custtype_pattern") ?>
56 text(<? value("custtype_pattern") ?>)
58 text('Not Applicable')
61 <? if exists("custgrp_id") ?>
62 (SELECT custgrp_name FROM custgrp WHERE custgrp_id=<? value("custgrp_id") ?>)
64 text('All Customer Groups')
67 <? if exists("custgrp_pattern") ?>
68 text(<? value("custgrp_pattern") ?>)
70 text('Not Applicable')
73 <? if exists("prodcat_id") ?>
74 (SELECT prodcat_code FROM prodcat WHERE prodcat_id=<? value("prodcat_id") ?>)
76 text('All Product Categories')
79 <? if exists("prodcat_pattern") ?>
80 text(<? value("prodcat_pattern") ?>)
82 text('Not Applicable')
85 <? if exists("item_id") ?>
86 (SELECT item_number FROM item WHERE item_id=<? value("item_id") ?>)
88 text('All Item Numbers')
91 <? if exists("cohead_id") ?>
92 (SELECT cohead_number FROM cohead WHERE cohead_id=<? value("cohead_id") ?>)
98 <querysource loadFromDb="true">
100 <mqlgroup>briefSalesHistory</mqlgroup>
101 <mqlname>detail</mqlname>
115 <weight>normal</weight>
119 <string>Doc. #</string>
131 <weight>normal</weight>
135 <string>Invc. Date</string>
147 <weight>normal</weight>
151 <string>Invoice #</string>
163 <weight>bold</weight>
167 <string>Brief Sales History</string>
179 <weight>normal</weight>
183 <string>Total</string>
195 <weight>normal</weight>
199 <string>Ord. 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>Total</string>
261 <weight>normal</weight>
265 <string>Ord. Date</string>
277 <weight>normal</weight>
281 <string>Invoice #</string>
300 <weight>normal</weight>
304 <string>Ship Date</string>
316 <weight>normal</weight>
320 <string>Doc. #</string>
327 <query>detail</query>
340 <weight>bold</weight>
345 <query>detail</query>
346 <column>cohist_ordernumber</column>
359 <weight>bold</weight>
364 <query>detail</query>
365 <column>invoicenumber</column>
378 <weight>bold</weight>
383 <query>detail</query>
384 <column>f_baseextprice</column>
397 <weight>bold</weight>
402 <query>detail</query>
403 <column>f_invcdate</column>
416 <weight>bold</weight>
421 <query>detail</query>
422 <column>f_orderdate</column>
439 <weight>normal</weight>
443 <string>Report Date:</string>
455 <weight>bold</weight>
460 <query>Context Query</query>
461 <column>page_number</column>
474 <weight>bold</weight>
479 <query>Context Query</query>
480 <column>report_date</column>
493 <weight>normal</weight>
497 <string>Page:</string>
512 <weight>normal</weight>
516 <string>Total:</string>
528 <weight>bold</weight>
533 <query>detail</query>
534 <column>baseextprice</column>
536 <format builtin="true">money</format>