<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Audit trail is showing double entries for Payment and Deposit]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10155&amp;type=atom" />
	<updated>2023-01-19T12:07:46Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10155</id>
		<entry>
			<title type="html"><![CDATA[Re: Audit trail is showing double entries for Payment and Deposit]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41963#p41963" />
			<content type="html"><![CDATA[<p>Thanks !</p>]]></content>
			<author>
				<name><![CDATA[dz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=44997</uri>
			</author>
			<updated>2023-01-19T12:07:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41963#p41963</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Audit trail is showing double entries for Payment and Deposit]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41956#p41956" />
			<content type="html"><![CDATA[<p>@dz,<br />Thanks for finding this.</p><p>This has been fixed and committed to stable repo.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2023-01-16T22:26:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41956#p41956</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Audit trail is showing double entries for Payment and Deposit]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41955#p41955" />
			<content type="html"><![CDATA[<p>The audit trail report is showing double entries for Payment and Deposit for Customer/Suppllier entries.</p><p>If the payment/deposits are made to Misc. than there is single entry posting in audit trail, but if we select customer/supplier it loads add_audit_trail therefore i have added the following in </p><p>1: For customer trans<br />/sales/includes/db/cust_trans_db.inc</p><p>Under write_customer_trans function i have replaced<br />&nbsp; &nbsp; if ($trans_type != ST_JOURNAL) // skip for journal entries</p><p>with </p><p>&nbsp; &nbsp; if ($trans_type != ST_JOURNAL &amp;&amp; $trans_type != ST_BANKDEPOSIT &amp;&amp; $trans_type != ST_BANKPAYMENT) // skip for journal entries</p><p>2. For Supplier trans<br />and in /purchasing/includes/db/supp_trans_db.inc<br />under write_supp_trans function i have added this line</p><p>&nbsp; &nbsp; if ($type != ST_JOURNAL &amp;&amp; $type != ST_BANKDEPOSIT &amp;&amp; $type != ST_BANKPAYMENT // skip for journal entries<br />above <br />&nbsp; &nbsp; add_audit_trail($type, $trans_no, $date_,&quot;Added&quot;,$amount);</p><p>This fixes the double posting of the same transactions in audit_trail table</p>]]></content>
			<author>
				<name><![CDATA[dz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=44997</uri>
			</author>
			<updated>2023-01-16T18:08:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41955#p41955</id>
		</entry>
</feed>
