<?xml version="1.0" encoding="UTF-8" ?>
<ActiveReportsLayout 
	GUIDLIB="{4680F00D-90E7-49EF-98F9-5483F98E3927}" GUIDREP="{638A3D77-0A6B-4BAC-B6CD-1AAA92036ACD}" 
	LICENSE="10000000"
	PrintWidth="11000"
	ShowParamUI="0"
	DocumentName="Client Details Deposits (Sub)"
	ScriptLang="VBScript"
>
<Watermark
		>
</Watermark>
<Script>
<![CDATA[option explicit

Sub OnReportStart
	
	' Hide sections if no records
	rpt.sections("GroupHeader1").visible = not rpt.data.recordset.eof
	rpt.sections("GroupFooter1").visible = not rpt.data.recordset.eof
	rpt.sections("Detail").visible = not rpt.data.recordset.eof
	
	rpt.data.source = rpt.data.source & " ORDER BY Contract.ContractId"

End Sub
]]></Script>
<PageSettings>
</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="GroupHeader" Name="GroupHeader1"
		Height="585"
	>
		<Control 
		Type="AR.Label"
		Name="lblHeading"
		Left="30"
		Top="30"
		Width="10930"
		Height="260"
		BorderTopStyle="1"
		BorderTopColor="0"
		BorderLeftStyle="1"
		BorderLeftColor="0"
		BorderRightStyle="1"
		BorderRightColor="0"
		BorderBottomStyle="1"
		BorderBottomColor="0"
		BorderShadow="1"
		Caption="Deposits"
		ClassName="Normal"
		Style="font-weight: bold; ddo-char-set: 1; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblCode"
		Left="0"
		Top="360"
		Width="11440"
		Height="190"
		BorderBottomStyle="1"
		BorderBottomColor="0"
		Caption="Deposit"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblDescription"
		Left="1050"
		Top="360"
		Width="2990"
		Height="190"
		Caption="Description"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblStatus"
		Left="5040"
		Top="360"
		Width="800"
		Height="190"
		Caption="Status"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblBalance"
		Left="7035"
		Top="360"
		Width="1200"
		Height="195"
		Caption="Balance"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; text-align: right; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblComment"
		Left="8240"
		Top="360"
		Width="2760"
		Height="190"
		Caption="Comment"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblType"
		Left="4040"
		Top="360"
		Width="1000"
		Height="190"
		Caption="Type"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; "
		>
		</Control>
		<Control 
		Type="AR.Label"
		Name="lblOpening"
		Left="5840"
		Top="360"
		Width="1200"
		Height="190"
		Caption="Opening"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; text-align: right; "
		>
		</Control>
<Script>
<![CDATA[
Sub OnFormat

End Sub
]]></Script>
	</Section>
	<Section Type="Detail" Name="Detail"
		Height="195"
		CanShrink="1"
	>
		<Control 
		Type="AR.DataControl"
		Name="Data"
		Left="-2000"
		Top="-2000"
		Width="16"
		Height="299"
		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 Contract.ContractId,Contract.Description
,Contract.ContractTypeId,Contract.Type,Guarantor.Comment
,Guarantor.Type AS GType,Contract.Status,{BalanceDeposit} AS Balance,(SELECT Sum(-Value) FROM Transactions WHERE Transactions.ContractId=Contract.ContractId AND Type=20) AS Opening FROM Contract INNER JOIN (Client INNER JOIN Guarantor ON Client.ClientId = Guarantor.GuarantorId) ON Contract.ContractId=Guarantor.ContractId WHERE Client.ClientId=&apos;&lt;%ClientId%&gt;&apos; AND Contract.Type In(&apos;D&apos;)"
		LockType="1"
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="txtDescription"
		DataField="Description"
		Left="1050"
		Top="0"
		Width="2990"
		Height="190"
		Text="txtDescription"
		CanGrow="0"
		ClassName="Normal"
		Style="font-size: 8pt; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="txtContractId"
		DataField="ContractId"
		Left="0"
		Top="0"
		Width="1050"
		Height="190"
		Text="txtContractId"
		CanGrow="0"
		ClassName="Normal"
		Style="font-size: 8pt; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="numBalance"
		DataField="Balance"
		Left="7040"
		Top="0"
		Width="1200"
		Height="190"
		Text="numBalance"
		OutputFormat="Currency"
		ClassName="Normal"
		Style="font-size: 8pt; text-align: right; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="txtType"
		DataField="GType"
		Left="4040"
		Top="0"
		Width="1000"
		Height="190"
		Text="GType"
		CanGrow="0"
		ClassName="Normal"
		Style="font-size: 8pt; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="txtStatus"
		DataField="Status"
		Left="5040"
		Top="0"
		Width="800"
		Height="190"
		Text="txtStatus"
		CanGrow="0"
		ClassName="Normal"
		Style="font-size: 8pt; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="txtComment"
		DataField="Comment"
		Left="8235"
		Top="0"
		Width="2760"
		Height="195"
		Text="txtComment"
		CanGrow="0"
		ClassName="Normal"
		Style="font-size: 8pt; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="numOpening"
		DataField="Opening"
		Left="5840"
		Top="0"
		Width="1200"
		Height="190"
		Text="numOverdue"
		OutputFormat="Currency"
		ClassName="Normal"
		Style="font-size: 8pt; text-align: right; "
		>
		</Control>
<Script>
<![CDATA[
Sub OnFormat

	' Format oddline feature
	rpt.Sections("Detail").backstyle = 1 - rpt.Sections("Detail").backstyle

End Sub
]]></Script>
	</Section>
	<Section Type="GroupFooter" Name="GroupFooter1"
		Height="220"
	>
		<Control 
		Type="AR.Field"
		Name="rfBalance"
		DataField="Balance"
		Left="7035"
		Top="0"
		Width="1200"
		Height="195"
		BorderTopStyle="1"
		BorderTopColor="0"
		BorderBottomStyle="6"
		BorderBottomColor="0"
		Text="rfBalance"
		OutputFormat="Currency"
		SummaryType="1"
		SummaryFunc="0"
		SummaryRunning="0"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; text-align: right; "
		>
		</Control>
		<Control 
		Type="AR.Field"
		Name="rfOverdue"
		DataField="Opening"
		Left="5835"
		Top="0"
		Width="1200"
		Height="195"
		BorderTopStyle="1"
		BorderTopColor="0"
		BorderBottomStyle="6"
		BorderBottomColor="0"
		Text="rfOpening"
		OutputFormat="Currency"
		SummaryType="1"
		SummaryFunc="0"
		SummaryRunning="0"
		ClassName="Normal"
		Style="font-size: 8pt; font-weight: bold; text-align: right; "
		>
		</Control>
<Script>
<![CDATA[
Sub OnFormat

End Sub
]]></Script>
	</Section>
</Sections>
</ActiveReportsLayout>
