<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=Fixing_a_Double_AR_void_Invoice</id>
	<title>Fixing a Double AR void Invoice - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=Fixing_a_Double_AR_void_Invoice"/>
	<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Fixing_a_Double_AR_void_Invoice&amp;action=history"/>
	<updated>2026-05-15T15:14:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>http://in.compucrete.com/index.php?title=Fixing_a_Double_AR_void_Invoice&amp;diff=208&amp;oldid=prev</id>
		<title>WikiAdmin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Fixing_a_Double_AR_void_Invoice&amp;diff=208&amp;oldid=prev"/>
		<updated>2023-07-14T12:58:49Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:58, 14 July 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>WikiAdmin</name></author>
	</entry>
	<entry>
		<id>http://in.compucrete.com/index.php?title=Fixing_a_Double_AR_void_Invoice&amp;diff=207&amp;oldid=prev</id>
		<title>Chanson: /* Example of fixing a double void */</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Fixing_a_Double_AR_void_Invoice&amp;diff=207&amp;oldid=prev"/>
		<updated>2018-10-03T18:38:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Example of fixing a double void&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
==Example of fixing a double void==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This example we are unvoiding session 291763&lt;br /&gt;
&lt;br /&gt;
first document original invoices:  (select &amp;lt;code&amp;gt;void_inv_session_no, from artinv  where session_no = 291763&amp;lt;/code&amp;gt;)&lt;br /&gt;
Results:&lt;br /&gt;
SESSION TRNS&lt;br /&gt;
291743 957&lt;br /&gt;
291743 1014&lt;br /&gt;
&lt;br /&gt;
We can use this trick to come up with a value equal to SESSION*10000+TRANS for later when we need to list these:&lt;br /&gt;
29174300957,&lt;br /&gt;
29174301014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now Delete:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
delete from glttrx where session_no = 291763&lt;br /&gt;
delete from arttaxtrx where session_no = 291763&lt;br /&gt;
delete from artcshhd where session_no = 291763&lt;br /&gt;
update artprtrx set reconciled_flag='Y' where session_no = 291763&lt;br /&gt;
DELETE from artprtrx where session_no = 291763&lt;br /&gt;
update artslsdt set reconciled_flag='Y' where session_no = 291763&lt;br /&gt;
DELETE from artslshd where session_no = 291763&lt;br /&gt;
DELETE from artinv where session_no = 291763&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and update original invoice to unpaid and non-void:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
select  * from artinv where (session_no*100000+trans_no) in ( 29174300957,  29174301014)&lt;br /&gt;
&lt;br /&gt;
update artinv set void_flag='N', CREDIT_AMOUNT=0 , LAST_POST_DATE=NULL&lt;br /&gt;
where (session_no*100000+trans_no) in ( 29174300957, 29174301014)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The customer can now void as desired.&lt;/div&gt;</summary>
		<author><name>Chanson</name></author>
	</entry>
</feed>