1|1|1|2
<?xml version="1.0" encoding="utf-16"?>
<Forms version="3.0">
  <Form module="op" application="spool_invoices" name="main" x="0" y="0" width="660" height="268" style="">
    <Coaching>This program reads through the Order file and produces invoices and credit notes for all orders despatched since the last invoice run.
The Accounts Receivable, Sales Analysis, and Customer files will be updated. </Coaching>
    <Grid num="1">
      <GridRow num="1">
        <GridColumn num="1" span="3">
          <Part title="Run details" x="0" y="0" width="310" height="100" style="">
            <Grid num="1">
              <GridRow num="1">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Batch name:<GUILocation x="4" y="4" width="47" /></Label>
                      </Title>
                      <Components>
                        <Label num="1">SI<GUILocation x="118" y="4" width="10" /></Label>
                        <Field num="2" ref="batch:1">
                          <GUILocation x="130" y="4" width="32" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="2">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="consol_desc:1">
                          <GUILocation x="4" y="18" width="114" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="include_cons:1">
                          <GUILocation x="118" y="18" width="50" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="3">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Invoice sequence:<GUILocation x="4" y="32" width="67" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="sequence:1">
                          <GUILocation x="118" y="32" width="67" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="4">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="reprint_prompt:1">
                          <GUILocation x="4" y="46" width="72" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="reprint:1">
                          <GUILocation x="118" y="46" width="15" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
            </Grid>
            <Parents />
          </Part>
        </GridColumn>
        <GridColumn num="4" span="3">
          <Part title="Options" x="320" y="0" width="310" height="100" style="">
            <Grid num="2">
              <GridRow num="1">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Back to back:<GUILocation x="4" y="4" width="51" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="back_to_back:1">
                          <GUILocation x="76" y="4" width="109" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="2">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Consolidate<GUILocation x="4" y="18" width="43" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="consolidate:1">
                          <GUILocation x="76" y="18" width="9" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="3">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Last despatch date:<GUILocation x="4" y="32" width="72" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="despatch_date:1">
                          <GUILocation x="76" y="32" width="40" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="4">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Invoice date:<GUILocation x="4" y="46" width="49" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="invoice_date:1">
                          <GUILocation x="76" y="46" width="40" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="5">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Effective date:<GUILocation x="4" y="60" width="55" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="effective_date:1">
                          <GUILocation x="76" y="60" width="40" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="6">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Posting period:<GUILocation x="4" y="74" width="56" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="year:1">
                          <GUILocation x="76" y="74" width="13" />
                        </Field>
                        <Field num="2" ref="period:1">
                          <GUILocation x="91" y="74" width="13" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
            </Grid>
            <Parents />
          </Part>
        </GridColumn>
      </GridRow>
      <GridRow num="2">
        <GridColumn num="1" span="6">
          <Part title="Selection ranges" x="0" y="120" width="630" height="128" style="">
            <Grid num="1">
              <GridRow num="1">
                <GridColumn num="1">
                  <BlockDef>
                    <RangeBlockArray span="1">
                      <RangeRows>
                        <RangeRow num="1">
                          <Description>
                            <Label num="1">Order number:<GUILocation x="4" y="4" width="55" /></Label>
                          </Description>
                          <FromText>
                            <Label num="2">Between<GUILocation x="74" y="4" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="3" ref="order_number:1">
                              <GUILocation x="110" y="4" width="52" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="4">and<GUILocation x="164" y="4" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="1" ref="order_number1:1">
                              <GUILocation x="183" y="4" width="52" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="2">
                          <Description>
                            <Label num="1">Customer number:<GUILocation x="4" y="18" width="68" /></Label>
                          </Description>
                          <FromText>
                            <Label num="2">Between<GUILocation x="74" y="18" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="3" ref="customer_number:1">
                              <GUILocation x="110" y="18" width="52" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="4">and<GUILocation x="164" y="18" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="1" ref="customer_number1:1">
                              <GUILocation x="183" y="18" width="52" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="3">
                          <Description>
                            <Label num="1">Territory:<GUILocation x="4" y="32" width="36" /></Label>
                          </Description>
                          <FromText>
                            <Label num="2">Between<GUILocation x="74" y="32" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="3" ref="territory:1">
                              <GUILocation x="110" y="32" width="52" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="4">and<GUILocation x="164" y="32" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="1" ref="territory1:1">
                              <GUILocation x="183" y="32" width="52" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="4">
                          <Description>
                            <Label num="1">Class:<GUILocation x="4" y="46" width="22" /></Label>
                          </Description>
                          <FromText>
                            <Label num="2">Between<GUILocation x="74" y="46" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="3" ref="ind_class:1">
                              <GUILocation x="110" y="46" width="52" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="4">and<GUILocation x="164" y="46" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="1" ref="ind_class1:1">
                              <GUILocation x="183" y="46" width="52" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="5">
                          <Description>
                            <Label num="1">Region:<GUILocation x="4" y="60" width="30" /></Label>
                          </Description>
                          <FromText>
                            <Label num="2">Between<GUILocation x="74" y="60" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="3" ref="region:1">
                              <GUILocation x="110" y="60" width="52" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="4">and<GUILocation x="164" y="60" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="1" ref="region1:1">
                              <GUILocation x="183" y="60" width="52" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="6">
                          <Description>
                            <Label num="1">Analysis 1:<GUILocation x="4" y="74" width="39" /></Label>
                          </Description>
                          <FromText>
                            <Label num="2">Between<GUILocation x="74" y="74" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="3" ref="from_tranco1:1">
                              <GUILocation x="110" y="74" width="52" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="4">and<GUILocation x="164" y="74" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="1" ref="to_tranco1:1">
                              <GUILocation x="183" y="74" width="52" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="7">
                          <Description>
                            <Label num="1">Analysis 2:<GUILocation x="4" y="88" width="39" /></Label>
                          </Description>
                          <FromText>
                            <Label num="2">Between<GUILocation x="74" y="88" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="3" ref="from_tranco2:1">
                              <GUILocation x="110" y="88" width="52" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="4">and<GUILocation x="164" y="88" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="1" ref="to_tranco2:1">
                              <GUILocation x="183" y="88" width="52" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="8">
                          <Description>
                            <Label num="1">Analysis 3:<GUILocation x="4" y="102" width="39" /></Label>
                          </Description>
                          <FromText>
                            <Label num="2">Between<GUILocation x="74" y="102" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="3" ref="from_tranco3:1">
                              <GUILocation x="110" y="102" width="52" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="4">and<GUILocation x="164" y="102" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="1" ref="to_tranco3:1">
                              <GUILocation x="183" y="102" width="52" />
                            </Field>
                          </ToField>
                        </RangeRow>
                      </RangeRows>
                    </RangeBlockArray>
                  </BlockDef>
                </GridColumn>
              </GridRow>
            </Grid>
            <Parents />
          </Part>
        </GridColumn>
      </GridRow>
    </Grid>
    <ActionKeys>
      <ActionKey key="0">
        <Icon>ActionClose.gif</Icon>
        <Conditions>
          <Condition name="Condition_1" description="Exit program">
            <ConditionAction action="Stop" />
          </Condition>
        </Conditions>
      </ActionKey>
      <ActionKey key="1">
        <Icon>ActionOK.gif</Icon>
        <Conditions>
          <Condition name="Condition_1" description="Enter analysis field information">
            <Data>Invoice sequence field is set to 'A'</Data>
            <ConditionAction action="LaunchForm">
              <ConditionForm module="op" application="spool_invoices" name="analysis_sequence" />
            </ConditionAction>
          </Condition>
          <Condition name="Condition_2" description="Run program">
            <Data>Invoice sequence field set to 'O'</Data>
            <ConditionAction action="LaunchForm">
              <ConditionForm module="op" application="spool_invoices" name="pagedef" />
            </ConditionAction>
          </Condition>
        </Conditions>
      </ActionKey>
    </ActionKeys>
  </Form>
</Forms>
