<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://developerzone-stg.pastel.co.za/index.php?action=history&amp;feed=atom&amp;title=VB6_Customer_Account</id>
		<title>VB6 Customer Account - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://developerzone-stg.pastel.co.za/index.php?action=history&amp;feed=atom&amp;title=VB6_Customer_Account"/>
		<link rel="alternate" type="text/html" href="https://developerzone-stg.pastel.co.za/index.php?title=VB6_Customer_Account&amp;action=history"/>
		<updated>2026-04-17T15:30:18Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.2</generator>

	<entry>
		<id>https://developerzone-stg.pastel.co.za/index.php?title=VB6_Customer_Account&amp;diff=175&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;&lt;syntaxhighlight lang=&quot;vb&quot;&gt; Dim helper As ComHelper Set helper = New ComHelper On Error GoTo ErrHandler  'Initialisation helper.CreateCommonDBConnection &quot;server=.;initial cata...&quot;</title>
		<link rel="alternate" type="text/html" href="https://developerzone-stg.pastel.co.za/index.php?title=VB6_Customer_Account&amp;diff=175&amp;oldid=prev"/>
				<updated>2015-10-26T09:10:05Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;vb&amp;quot;&amp;gt; Dim helper As ComHelper Set helper = New ComHelper On Error GoTo ErrHandler  &amp;#039;Initialisation helper.CreateCommonDBConnection &amp;quot;server=.;initial cata...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
Dim helper As ComHelper&lt;br /&gt;
Set helper = New ComHelper&lt;br /&gt;
On Error GoTo ErrHandler&lt;br /&gt;
&lt;br /&gt;
'Initialisation&lt;br /&gt;
helper.CreateCommonDBConnection &amp;quot;server=.;initial catalog=EvolutionCommon;integrated security=sspi&amp;quot;&lt;br /&gt;
helper.SetLicense &amp;quot;DEMO&amp;quot;, &amp;quot;17411087337875&amp;quot;&lt;br /&gt;
helper.CreateConnection &amp;quot;server=.;initial catalog=50010;integrated security=sspi&amp;quot;&lt;br /&gt;
&lt;br /&gt;
helper.BeginTran&lt;br /&gt;
&lt;br /&gt;
'Create a new customer account&lt;br /&gt;
Dim cust As Customer&lt;br /&gt;
Set cust = New Customer&lt;br /&gt;
cust.code = &amp;quot;ABD001&amp;quot;&lt;br /&gt;
cust.Description = &amp;quot;ABD&amp;quot;&lt;br /&gt;
cust.Save&lt;br /&gt;
&lt;br /&gt;
'Post a customer transaction&lt;br /&gt;
Dim tran As CustomerTransaction&lt;br /&gt;
Set tran = New CustomerTransaction&lt;br /&gt;
Set tran.Customer = cust&lt;br /&gt;
tran.Date = Now&lt;br /&gt;
&lt;br /&gt;
Dim trcode As TransactionCode&lt;br /&gt;
Set trcode = helper.GetTransactionCode(Pastel_Evolution_Module_AR, &amp;quot;IN&amp;quot;)&lt;br /&gt;
tran.TransactionCode = trcode&lt;br /&gt;
tran.Amount = 114&lt;br /&gt;
tran.Tax = 14&lt;br /&gt;
tran.Reference = &amp;quot;INV0001&amp;quot;&lt;br /&gt;
tran.Description = &amp;quot;Monthly Fee&amp;quot;&lt;br /&gt;
tran.Post&lt;br /&gt;
&lt;br /&gt;
helper.CommitTran&lt;br /&gt;
Exit Sub&lt;br /&gt;
ErrHandler:&lt;br /&gt;
    helper.RollbackTran&lt;br /&gt;
    MsgBox Err.Description&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>