<?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=C_Customer_Batches</id>
		<title>C Customer Batches - 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=C_Customer_Batches"/>
		<link rel="alternate" type="text/html" href="https://developerzone-stg.pastel.co.za/index.php?title=C_Customer_Batches&amp;action=history"/>
		<updated>2026-04-17T19:44:44Z</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=C_Customer_Batches&amp;diff=320&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;A Customer Batch is created in Customers | Transactions | Customers Batches.  Customer batches can take gl accounts and Supplier accounts. The batch can also be processed.  ''...&quot;</title>
		<link rel="alternate" type="text/html" href="https://developerzone-stg.pastel.co.za/index.php?title=C_Customer_Batches&amp;diff=320&amp;oldid=prev"/>
				<updated>2017-07-18T13:23:42Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;A Customer Batch is created in Customers | Transactions | Customers Batches.  Customer batches can take gl accounts and Supplier accounts. The batch can also be processed.  &amp;#039;&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A Customer Batch is created in Customers | Transactions | Customers Batches.&lt;br /&gt;
&lt;br /&gt;
Customer batches can take gl accounts and Supplier accounts. The batch can also be processed.&lt;br /&gt;
&lt;br /&gt;
'''The following is an example of a Customer Batch'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
string BatchNum = &amp;quot;ARB1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
CustomerBatch.Get(1);&lt;br /&gt;
if (CustomerBatch.Find(BatchNum) == -1)&lt;br /&gt;
{&lt;br /&gt;
//  Batch code does not exist, so create it&lt;br /&gt;
CustomerBatch createsbatch = new CustomerBatch();&lt;br /&gt;
createsbatch.BatchNo = BatchNum;&lt;br /&gt;
createsbatch.Description = &amp;quot;CB Batch&amp;quot;;&lt;br /&gt;
createsbatch.CreatedAgent = new Agent(&amp;quot;Admin&amp;quot;);&lt;br /&gt;
createsbatch.AllowGLContraSplit = true;&lt;br /&gt;
createsbatch.AllowDuplicateReferences = true;&lt;br /&gt;
createsbatch.EnterTaxOnGlContraSplit = true;&lt;br /&gt;
createsbatch.Save();&lt;br /&gt;
&lt;br /&gt;
MessageBox.Show(createsbatch.BatchNo);&lt;br /&gt;
}&lt;br /&gt;
//The following code populates a customer batch and processes it&lt;br /&gt;
CustomerBatch CB = new CustomerBatch(BatchNum);&lt;br /&gt;
&lt;br /&gt;
BatchDetail BDet = new BatchDetail();&lt;br /&gt;
BDet.Customer = new Customer(&amp;quot;Cash&amp;quot;);&lt;br /&gt;
BDet.Date = DateTime.Now;&lt;br /&gt;
BDet.Description = &amp;quot;LineDesc&amp;quot;;&lt;br /&gt;
BDet.Reference = &amp;quot;ref1&amp;quot;;&lt;br /&gt;
BDet.PostDated = false;&lt;br /&gt;
BDet.TransactionCode = new TransactionCode(Module.AR, &amp;quot;IN&amp;quot;);&lt;br /&gt;
BDet.TaxType = new TaxRate(1);&lt;br /&gt;
BDet.AmountExclusive = 728;&lt;br /&gt;
BDet.GLContraAccount = new GLAccount(&amp;quot;accounting fees&amp;quot;);&lt;br /&gt;
CB.Detail.Add(BDet);&lt;br /&gt;
&lt;br /&gt;
BDet = new BatchDetail();&lt;br /&gt;
CB.Detail.Add(BDet);&lt;br /&gt;
BDet.Supplier = new Supplier(&amp;quot;Supplier1&amp;quot;);&lt;br /&gt;
BDet.Date = DateTime.Now;&lt;br /&gt;
BDet.Description = &amp;quot;LineDesc&amp;quot;;&lt;br /&gt;
BDet.Reference = &amp;quot;ref1&amp;quot;;&lt;br /&gt;
BDet.PostDated = false;&lt;br /&gt;
BDet.TransactionCode = new TransactionCode(Module.AP, &amp;quot;IN&amp;quot;);&lt;br /&gt;
BDet.TaxType = new TaxRate(1);&lt;br /&gt;
BDet.ContraSplit.Add(&amp;quot;Security&amp;quot;, &amp;quot;Ledger Line 1&amp;quot;, 100, &amp;quot;1&amp;quot;);&lt;br /&gt;
BDet.ContraSplit.Add(&amp;quot;Sales&amp;quot;, &amp;quot;Ledger Line 2&amp;quot;, 328, &amp;quot;1&amp;quot;);&lt;br /&gt;
BDet.AmountExclusive = 428;&lt;br /&gt;
&lt;br /&gt;
BDet = new BatchDetail();&lt;br /&gt;
BDet.GLAccount = new GLAccount(&amp;quot;Advertising&amp;quot;);&lt;br /&gt;
BDet.Date = DateTime.Now;&lt;br /&gt;
BDet.Description = &amp;quot;LineDesc&amp;quot;;&lt;br /&gt;
BDet.Reference = &amp;quot;ref1&amp;quot;;&lt;br /&gt;
BDet.PostDated = false;&lt;br /&gt;
BDet.IsDebit = true;&lt;br /&gt;
BDet.TransactionCode = new TransactionCode(Module.GL, &amp;quot;JNL&amp;quot;);&lt;br /&gt;
BDet.TaxType = new TaxRate(1);&lt;br /&gt;
BDet.ContraSplit.Add(&amp;quot;Security&amp;quot;, &amp;quot;Ledger Line 1&amp;quot;, 100, &amp;quot;1&amp;quot;);&lt;br /&gt;
BDet.ContraSplit.Add(&amp;quot;Sales&amp;quot;, &amp;quot;Ledger Line 2&amp;quot;, 428, &amp;quot;1&amp;quot;);&lt;br /&gt;
BDet.ContraSplit.Add(&amp;quot;Accounting fees&amp;quot;, &amp;quot;Ledger Line 3&amp;quot;, 500, &amp;quot;3&amp;quot;);&lt;br /&gt;
BDet.AmountExclusive = 1028;&lt;br /&gt;
CB.Detail.Add(BDet);&lt;br /&gt;
&lt;br /&gt;
CB.Process();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>