<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — bug in purchase order delete when invoking hook_db_prevoid ()]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=9017</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9017&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in bug in purchase order delete when invoking hook_db_prevoid ().]]></description>
		<lastBuildDate>Tue, 29 Sep 2020 05:02:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: bug in purchase order delete when invoking hook_db_prevoid ()]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38413#p38413</link>
			<description><![CDATA[<p>Thanks @Joe, @Varadha</p><p>I have been facing issue while creating modules related to purchase.</p>]]></description>
			<author><![CDATA[null@example.com (anoopmb)]]></author>
			<pubDate>Tue, 29 Sep 2020 05:02:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38413#p38413</guid>
		</item>
		<item>
			<title><![CDATA[Re: bug in purchase order delete when invoking hook_db_prevoid ()]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38397#p38397</link>
			<description><![CDATA[<p>Fixed and committed to stable repo.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sat, 26 Sep 2020 08:00:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38397#p38397</guid>
		</item>
		<item>
			<title><![CDATA[Re: bug in purchase order delete when invoking hook_db_prevoid ()]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38395#p38395</link>
			<description><![CDATA[<p>@anoopmb you are right. This is a bug. @Joe fix it. By changing the parameter location.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sat, 26 Sep 2020 05:07:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38395#p38395</guid>
		</item>
		<item>
			<title><![CDATA[Re: bug in purchase order delete when invoking hook_db_prevoid ()]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38394#p38394</link>
			<description><![CDATA[<p>I will have a look at this.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sat, 26 Sep 2020 05:03:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38394#p38394</guid>
		</item>
		<item>
			<title><![CDATA[Re: bug in purchase order delete when invoking hook_db_prevoid ()]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38393#p38393</link>
			<description><![CDATA[<p>@anoopmb: I found this function in includes/hooks.inc</p><p>This database transaction hooks are for modules to invoked before transaction is voided</p><div class="codebox"><pre><code>function hook_db_prevoid($type, $type_no)
{
    return hook_invoke_all(&#039;db_prevoid&#039;, $type, $type_no);
}</code></pre></div><p>Where $type is type of transaction like ST_PURCHORDER. Which mean first parameter must be ST_PURCHORDER.</p><p>So your correct, but @joe or @apmuthu may provide more information on this.</p><p>Regards</p>]]></description>
			<author><![CDATA[null@example.com (dearmosin)]]></author>
			<pubDate>Fri, 25 Sep 2020 23:05:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38393#p38393</guid>
		</item>
		<item>
			<title><![CDATA[bug in purchase order delete when invoking hook_db_prevoid ()]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38388#p38388</link>
			<description><![CDATA[<p>Hi,</p><p>I found a bug in delete_po($po) function</p><div class="codebox"><pre><code>hook_db_prevoid($po, ST_PURCHORDER);</code></pre></div><p>it has to be </p><div class="codebox"><pre><code>hook_db_prevoid(ST_PURCHORDER, $po);</code></pre></div><p>please correct me, if i am wrong</p>]]></description>
			<author><![CDATA[null@example.com (anoopmb)]]></author>
			<pubDate>Wed, 23 Sep 2020 21:49:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38388#p38388</guid>
		</item>
	</channel>
</rss>
