<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Audit trail is showing double entries for Payment and Deposit]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10155</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10155&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Audit trail is showing double entries for Payment and Deposit.]]></description>
		<lastBuildDate>Thu, 19 Jan 2023 12:07:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Audit trail is showing double entries for Payment and Deposit]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41963#p41963</link>
			<description><![CDATA[<p>Thanks !</p>]]></description>
			<author><![CDATA[null@example.com (dz)]]></author>
			<pubDate>Thu, 19 Jan 2023 12:07:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41963#p41963</guid>
		</item>
		<item>
			<title><![CDATA[Re: Audit trail is showing double entries for Payment and Deposit]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41956#p41956</link>
			<description><![CDATA[<p>@dz,<br />Thanks for finding this.</p><p>This has been fixed and committed to stable repo.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 16 Jan 2023 22:26:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41956#p41956</guid>
		</item>
		<item>
			<title><![CDATA[Audit trail is showing double entries for Payment and Deposit]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41955#p41955</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (dz)]]></author>
			<pubDate>Mon, 16 Jan 2023 18:08:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41955#p41955</guid>
		</item>
	</channel>
</rss>
