<?xml version="1.0" encoding="UTF-8" ?>
<ActiveReportsLayout 
	GUIDLIB="{54303DCE-DBAE-40BF-A8C3-022E6009EE82}" GUIDREP="{8E577152-08C0-4431-A3F5-CB14F4CB7E62}" 
	LICENSE="10000000"
	PrintWidth="11000"
	DocumentName="Loan Trial Balance"
	ScriptLang="VBScript"
>
<Watermark
		>
</Watermark>
<Script>
<![CDATA[Sub OnReportStart

	
	' Append SQLWhere
	If len(vbCode.SQLWhere) <> 0 then rpt.data.source = rpt.data.source & " AND " & vbCode.SQLWhere

	rpt.data.source = rpt.data.source & " ORDER BY Contract.DealerId,Contract.ContractId"


End Sub
]]></Script>
<PageSettings	LeftMargin="400"
	RightMargin="400"
	TopMargin="400"
	BottomMargin="400"
>
</PageSettings>
<StyleSheet>
	<Style Name="Normal"
	Value="font-family: Arial; font-style: normal; font-variant: inherit; font-weight: normal; font-size: 10pt; font-size-adjust: inherit; font-stretch: inherit; color: rgb(0,0,0); background-color: rgb(255,255,255); background-image: inherit; background-repeat: inherit; background-attachment: inherit; background-x-position: inherit; background-y-position: inherit; opacity: inherit; word-spacing: inherit; letter-spacing: inherit; text-decoration: none; vertical-align: inherit; text-transform: inherit; text-align: inherit; text-indent: inherit; unicode-bidi: inherit; line-height: inherit; white-space: inherit; ddo-can-grow: inherit; ddo-can-shrink: inherit; ddo-char-set: 0; "
	/>
	<Style Name="Heading1"
	Value="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: bold; font-size: 16pt; font-size-adjust: inherit; font-stretch: inherit; "
	/>
	<Style Name="Heading2"
	Value="font-family: Times New Roman; font-style: italic; font-variant: inherit; font-weight: bold; font-size: 14pt; font-size-adjust: inherit; font-stretch: inherit; "
	/>
	<Style Name="Heading3"
	Value="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: bold; font-size: 13pt; font-size-adjust: inherit; font-stretch: inherit; "
	/>
	<Style Name="Heading4"
	/>
</StyleSheet>
<Sections>
	<Section Type="ReportHeader" Name="ReportHeader"
		Height="0"
	>
	</Section>
	<Section Type="PageHeader" Name="PageHeader"
		Height="620"
	>
		<Control 
		Type="AR.Label"
		Name="lblHeading"
		Left="0"
		Top="30"
		Width="11000"
		Height="340"
		BorderTopStyle="1"
		BorderTopColor="0"
		BorderBottomStyle="1"
		BorderBottomColor="0"
		Caption="Loan Trial Balance"
		ClassName="Normal"
		Style="font-size: 16pt; font-weight: bold; text-align: center; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblLoan"
		Left="0"
		Top="420"
		Width="11000"
		Height="200"
		BorderBottomStyle="1"
		BorderBottomColor="0"
		Caption="Loan"
		ClassName="Normal"
		Style="font-weight: bold; font-size: 8pt; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblDescription"
		Left="2850"
		Top="420"
		Width="1800"
		Height="200"
		Caption="Description"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblLastPayment"
		Left="4650"
		Top="420"
		Width="2000"
		Height="200"
		Caption="Last Payment"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; text-align: right; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblOverdue"
		Left="6650"
		Top="420"
		Width="1250"
		Height="200"
		Caption="Overdue"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; text-align: right; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblBalance"
		Left="7900"
		Top="420"
		Width="1250"
		Height="200"
		Caption="Balance"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; text-align: right; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblNextPayment"
		Left="9150"
		Top="420"
		Width="1845"
		Height="200"
		Caption="Next Payment"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; text-align: right; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblName"
		Left="1050"
		Top="420"
		Width="1800"
		Height="200"
		Caption="Name"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; "
		>
		</Control>
	</Section>
	<Section Type="Detail" Name="Detail"
		Height="200"
		BackStyle="1"
		BackColor="12648447"
	>
		<Control 
		Type="AR.DataControl"
		Name="Data"
		Left="-2000"
		Top="-2000"
		Width="1500"
		Height="360"
		Visible="0"
		Tag="C:\Program Files\Intersoft\finPOWER5\SYSTEM.MDW?C:\Program Files\Intersoft\finPOWER5\finDEMO.mdb"
		ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Intersoft\finPOWER5\finDEMO.mdb;User Id=User;Password=user;Jet OLEDB:System database=C:\Program Files\Intersoft\finPOWER5\SYSTEM.MDW"
		RecordSource="SELECT ContractId,Name,Description,DealerId,{Overdue} AS Overdue,{BalanceLoan} AS CurrentBalance,{LastPaymentDate} AS LastPaymentDate,{LastPaymentValue} AS LastPaymentValue,{NextPaymentDate} AS NextPaymentDate,{NextPaymentValue} AS NextPaymentValue,(SELECT Sum(Payment) FROM ContractInstalments WHERE ContractInstalments.ContractId=Contract.ContractId AND Date&lt;#8/7/2003#) AS TotalInstalments,{TotalTransactions} AS TotalTransactions From Contract WHERE Type In(&apos;C&apos;,&apos;L&apos;,&apos;R&apos;) and Contract.Status IN (&apos;Open&apos;,&apos;Closed&apos;,&apos;Repo&apos;) AND Contract.DateOpened&lt;=#8/7/2003# AND (Contract.DateClosed IS Null OR Contract.DateClosed&gt;#8/7/2003#)"
		LockType="1"
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="txtContractId"
		DataField="ContractId"
		Left="0"
		Top="0"
		Width="1050"
		Height="200"
		Text="ContractId"
		ClassName="Normal"
		Style="font-size: 8pt; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="txtName"
		DataField="Name"
		Left="1050"
		Top="0"
		Width="1800"
		Height="200"
		Text="Name"
		ClassName="Normal"
		Style="font-size: 8pt; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="txtDescription"
		DataField="Description"
		Left="2850"
		Top="0"
		Width="1800"
		Height="200"
		Text="Description"
		ClassName="Normal"
		Style="font-size: 8pt; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="txtLastPaymentDate"
		DataField="LastPaymentDate"
		Left="4710"
		Top="0"
		Width="950"
		Height="200"
		Text="LastPaymentDate"
		OutputFormat="d mmm yy"
		ClassName="Normal"
		Style="font-size: 8pt; text-align: right; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="txtLastPaymentValue"
		DataField="LastPaymentValue"
		Left="5700"
		Top="0"
		Width="945"
		Height="195"
		Text="LastPaymentValue"
		OutputFormat="#,##0.00"
		ClassName="Normal"
		Style="font-size: 8pt; text-align: right; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="txtOverdue"
		DataField="Overdue"
		Left="6650"
		Top="0"
		Width="1250"
		Height="200"
		Text="Overdue"
		OutputFormat="#,##0.00"
		ClassName="Normal"
		Style="font-size: 8pt; text-align: right; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="txtCurrentBalance"
		DataField="CurrentBalance"
		Left="7900"
		Top="0"
		Width="1250"
		Height="200"
		Text="CurrentBalance"
		OutputFormat="#,##0.00"
		ClassName="Normal"
		Style="font-size: 8pt; text-align: right; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="txtNextPaymentDate"
		DataField="NextPaymentDate"
		Left="9100"
		Top="0"
		Width="950"
		Height="200"
		Text="NextPaymentDate"
		OutputFormat="d mmm yy"
		ClassName="Normal"
		Style="font-size: 8pt; text-align: right; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="txtNextPaymentValue"
		DataField="NextPaymentValue"
		Left="10050"
		Top="0"
		Width="950"
		Height="200"
		Text="NextPaymentValue"
		OutputFormat="#,##0.00"
		ClassName="Normal"
		Style="font-size: 8pt; text-align: right; "
		>
		</Control>
<Script>
<![CDATA[
Sub OnFormat

	rpt.Sections("Detail").BackStyle = 1 - rpt.Sections("Detail").BackStyle

End Sub
]]></Script>
	</Section>
	<Section Type="PageFooter" Name="PageFooter"
		Height="100"
	>
		<Control 
		Type="AR.Label"
		Name="lblpgUnderLine"
		Left="0"
		Top="16"
		Width="11000"
		Height="100"
		BorderTopStyle="1"
		BorderTopColor="0"
		Multiline="0"
		ClassName="Normal"
		>
		</Control>
	</Section>
	<Section Type="ReportFooter" Name="ReportFooter"
		Height="300"
	>
		<Control 
		Type="AR.Field"
		Name="rfOverdue"
		DataField="Overdue"
		Left="6650"
		Top="60"
		Width="1250"
		Height="240"
		Text="Overdue"
		OutputFormat="#,##0.00"
		SummaryType="1"
		SummaryFunc="0"
		SummaryRunning="0"
		ClassName="Normal"
		Style="text-align: right; font-weight: bold; font-size: 8pt; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="rfCurrentBalance"
		DataField="CurrentBalance"
		Left="7900"
		Top="60"
		Width="1250"
		Height="240"
		Text="CurrentBalance"
		OutputFormat="#,##0.00"
		SummaryType="1"
		SummaryFunc="0"
		SummaryRunning="0"
		ClassName="Normal"
		Style="text-align: right; font-weight: bold; font-size: 8pt; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblrptUnderLine"
		Left="0"
		Top="60"
		Width="11000"
		Height="142"
		BorderTopStyle="1"
		BorderTopColor="0"
		Multiline="0"
		ClassName="Normal"
		>
		</Control>
	</Section>
</Sections>
</ActiveReportsLayout>
