1|1|1|1
<?xml version="1.0" encoding="utf-16"?>
<Forms version="3.0">
  <Form module="op" application="sales_analysis_pend" name="main" x="0" y="0" width="660" height="184" style="">
    <Coaching>** No other Order Processing programs should be run until completion **

This program clears the month to date figures from the Sales Analysis Summary file at period end.

In addition at year end type CLEAR in the field Clear year to date figures if you want to also clear down the Sales Analysis
History file. Alternatively leave blank to retain this information.
Tick the Amend history file field if you want to clear down all or part of the Sales Analysis History File.

</Coaching>
    <Grid num="1">
      <GridRow num="1">
        <GridColumn num="1" span="6">
          <Part title="Period end criteria" x="0" y="0" width="630" height="72" style="">
            <Grid num="1">
              <GridRow num="1">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Clear year to date figures:<GUILocation x="4" y="4" width="91" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="clear_ytd:1">
                          <GUILocation x="95" y="4" width="32" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="2">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Amend history file:<GUILocation x="4" y="18" width="68" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="hist_clear:1">
                          <GUILocation x="95" y="18" width="11" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="3">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Archive history:<GUILocation x="4" y="32" width="57" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="hist_arch:1">
                          <GUILocation x="95" y="32" width="9" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="4">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Archive directory:<GUILocation x="4" y="46" width="64" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="arch_dir:1">
                          <GUILocation x="95" y="46" width="156" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
                <GridColumn num="2">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Archive file name:<GUILocation x="266" y="46" width="65" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="arch_file:1">
                          <GUILocation x="331" y="46" width="156" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
            </Grid>
            <Parents />
          </Part>
        </GridColumn>
      </GridRow>
      <GridRow num="2">
        <GridColumn num="1" span="6">
          <Part title="Progress" x="0" y="92" width="630" height="72" style="">
            <Grid num="1">
              <GridRow num="1">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="2" hidebox="True">
                      <Title>
                        <Label num="1">
                          <GUILocation x="4" y="4" width="0" />
                        </Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="msg_1:1">
                          <GUILocation x="186" y="4" width="405" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="2">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="records_msg:1">
                          <GUILocation x="4" y="18" width="182" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="number_records:1">
                          <GUILocation x="186" y="18" width="50" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="3">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="mtd_value_msg:1">
                          <GUILocation x="4" y="32" width="109" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="mtd_value:1">
                          <GUILocation x="186" y="32" width="75" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
                <GridColumn num="2">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="ytd_value_msg:1">
                          <GUILocation x="276" y="32" width="109" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="ytd_value:1">
                          <GUILocation x="385" y="32" width="75" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="4">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="mtd_cost_msg:1">
                          <GUILocation x="4" y="46" width="109" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="mtd_cost:1">
                          <GUILocation x="186" y="46" width="75" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
                <GridColumn num="2">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="ytd_cost_msg:1">
                          <GUILocation x="276" y="46" width="109" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="ytd_cost:1">
                          <GUILocation x="385" y="46" width="75" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
            </Grid>
            <Parents />
          </Part>
        </GridColumn>
      </GridRow>
    </Grid>
    <ActionKeys>
      <ActionKey key="1">
        <Icon>ActionOK.gif</Icon>
        <Conditions>
          <Condition name="Condition_1" description="Used to start the period-end process.">
            <Data>Amend history file = N</Data>
            <ConditionAction action="LaunchForm">
              <ConditionForm module="op" application="sales_analysis_pend" name="main" />
            </ConditionAction>
          </Condition>
          <Condition name="Condition_2" description="Used to enter the hisotry file cleardown cut-off date">
            <Data>Amend history file? = Y</Data>
            <ConditionAction action="LaunchForm">
              <ConditionForm module="op" application="sales_analysis_pend" name="date" />
            </ConditionAction>
          </Condition>
        </Conditions>
      </ActionKey>
      <ActionKey key="0">
        <Icon>ActionClose.gif</Icon>
        <Conditions>
          <Condition name="Condition_1" description="Used to exit the option without running the period end process.">
            <ConditionAction action="Stop" />
          </Condition>
        </Conditions>
      </ActionKey>
    </ActionKeys>
  </Form>
</Forms>
