3 <title>Item Costs By Class Code</title>
4 <name>ItemCostsByClassCode</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("classcode_id") ?>
15 ( SELECT (classcode_code || '-' || classcode_descrip)
17 WHERE (classcode_id=<? value("classcode_id") ?>) )
18 <? elseif exists("classcode_pattern") ?>
19 text(<? value("classcode_pattern") ?>)
21 text('All Class Codes')
32 formatCost(scost) as f_stdcost,
33 formatCost(acost) as f_actcost,
35 FROM ( SELECT item_id,
40 stdcost(item_id) AS scost,
41 actcost(item_id) AS acost,
43 FROM item, classcode, uom
44 WHERE ((item_classcode_id=classcode_id)
45 AND (item_inv_uom_id=uom_id)
46 <? if exists("classcode_id") ?>
47 AND (classcode_id=<? value("classcode_id") ?>)
48 <? elseif exists("classcode_pattern") ?>
49 AND (classcode_code ~ <? value("classcode_pattern") ?>)
54 <? if exists("onlyShowZeroCosts") ?>
55 AND ((scost=0) OR (acost=0))
57 <? if exists("onlyShowDiffCosts") ?>
61 ORDER BY item_number</sql>
75 <weight>normal</weight>
79 <string>Class Code(s):</string>
91 <weight>normal</weight>
95 <string>Class Code</string>
107 <weight>normal</weight>
111 <string>Item Description</string>
123 <weight>bold</weight>
127 <string>Item Costs by Class Code</string>
139 <weight>normal</weight>
162 <weight>normal</weight>
166 <string>Actual Cost</string>
178 <weight>normal</weight>
182 <string>Item Number</string>
194 <weight>bold</weight>
200 <column>classcode</column>
213 <weight>normal</weight>
217 <string>Standard Cost</string>
236 <weight>normal</weight>
240 <string>Actual Cost</string>
252 <weight>normal</weight>
256 <string>Standard Cost</string>
268 <weight>normal</weight>
272 <string>Class Code</string>
284 <weight>normal</weight>
288 <string>Item Description</string>
300 <weight>normal</weight>
323 <weight>normal</weight>
327 <string>Item Number</string>
334 <query>detail</query>
347 <weight>bold</weight>
352 <query>detail</query>
353 <column>f_uom</column>
366 <weight>bold</weight>
371 <query>detail</query>
372 <column>f_stdcost</column>
392 <weight>bold</weight>
397 <query>detail</query>
398 <column>classcode_code</column>
411 <weight>bold</weight>
416 <query>detail</query>
417 <column>item_number</column>
430 <weight>bold</weight>
435 <query>detail</query>
436 <column>item_descrip2</column>
449 <weight>bold</weight>
454 <query>detail</query>
455 <column>item_descrip1</column>
468 <weight>bold</weight>
473 <query>detail</query>
474 <column>f_actcost</column>
491 <weight>normal</weight>
495 <string>Page:</string>
507 <weight>normal</weight>
511 <string>Report Date:</string>
523 <weight>bold</weight>
528 <query>Context Query</query>
529 <column>page_number</column>
542 <weight>bold</weight>
547 <query>Context Query</query>
548 <column>report_date</column>