Ticket #1141: TotalTest.rfxml

File TotalTest.rfxml, 1.9 kB (added by Dave Nation, 4 months ago)
Line 
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <Report>
3     <Variables>
4         <Variable>
5             <expr>self.totalSingles + self.Record['QtyUnits'] </expr>
6             <InitialValue>0</InitialValue>
7             <Name>totalSingles</Name>
8         </Variable>
9         <Variable>
10             <expr>self.totalLineCost + self.Record['LineCost']</expr>
11             <InitialValue>decimal.Decimal('0.00')</InitialValue>
12             <Name>totalLineCost</Name>
13         </Variable>
14     </Variables>
15
16     <Groups>
17         <Group>
18             <expr>0</expr>
19             <GroupHeader>
20                 <Objects></Objects>
21             </GroupHeader>
22             <GroupFooter>
23                 <Height>30</Height>
24                 <Objects>
25                     <String>
26                         <Align>'right'</Align>
27                         <expr>self.totalSingles</expr>
28                         <FontName>'Helvetica-Bold'</FontName>
29                         <height>12</height>
30                         <width>40</width>
31                         <x>100</x>
32                         <y>0</y>
33                     </String>
34                     <String>
35                         <Align>'right'</Align>
36                         <expr>self.totalLineCost</expr>
37                         <FontName>'Helvetica-Bold'</FontName>
38                         <Height>12</Height>
39                         <width>40</width>
40                         <x>200</x>
41                         <y>0</y>
42                     </String>
43                 </Objects>
44             </GroupFooter>
45         </Group>
46     </Groups>
47     <Detail>
48         <Height>13.3</Height>
49         <Objects>
50             <String>
51                 <Align>'right'</Align>
52                 <expr>self.Record["QtyUnits"]</expr>
53                 <fontName>"Helvetica"</fontName>
54                 <fontSize>9</fontSize>
55                 <hAnchor>"left"</hAnchor>
56                 <height>12</height>
57                 <vAnchor>"bottom"</vAnchor>
58                 <Width>40</Width>
59                 <x>100</x>
60                 <y>0</y>
61             </String>
62             <String>
63                 <Align>'right'</Align>
64                 <expr>self.Record["LineCost"]</expr>
65                 <fontName>"Helvetica"</fontName>
66                 <fontSize>9</fontSize>
67                 <hAnchor>"left"</hAnchor>
68                 <height>12</height>
69                 <vAnchor>"bottom"</vAnchor>
70                 <Width>40</Width>
71                 <x>200</x>
72                 <y>0</y>
73             </String>
74         </Objects>
75     </Detail>
76
77     <TestCursor>
78         <record LineCost="Decimal(&quot;1.11&quot;)" QtyUnits="6"/>
79         <record LineCost="Decimal(&quot;2.22&quot;)" QtyUnits="3"/>
80     </TestCursor>
81 </Report>