<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — bug in purchase order delete when invoking hook_db_prevoid ()]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9017&amp;type=atom" />
	<updated>2020-09-29T05:02:12Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9017</id>
		<entry>
			<title type="html"><![CDATA[Re: bug in purchase order delete when invoking hook_db_prevoid ()]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38413#p38413" />
			<content type="html"><![CDATA[<p>Thanks @Joe, @Varadha</p><p>I have been facing issue while creating modules related to purchase.</p>]]></content>
			<author>
				<name><![CDATA[anoopmb]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18207</uri>
			</author>
			<updated>2020-09-29T05:02:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38413#p38413</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: bug in purchase order delete when invoking hook_db_prevoid ()]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38397#p38397" />
			<content type="html"><![CDATA[<p>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>2020-09-26T08:00:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38397#p38397</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: bug in purchase order delete when invoking hook_db_prevoid ()]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38395#p38395" />
			<content type="html"><![CDATA[<p>@anoopmb you are right. This is a bug. @Joe fix it. By changing the parameter location.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2020-09-26T05:07:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38395#p38395</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: bug in purchase order delete when invoking hook_db_prevoid ()]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38394#p38394" />
			<content type="html"><![CDATA[<p>I will have a look at this.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2020-09-26T05:03:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38394#p38394</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: bug in purchase order delete when invoking hook_db_prevoid ()]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38393#p38393" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dearmosin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=44699</uri>
			</author>
			<updated>2020-09-25T23:05:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38393#p38393</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[bug in purchase order delete when invoking hook_db_prevoid ()]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38388#p38388" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anoopmb]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18207</uri>
			</author>
			<updated>2020-09-23T21:49:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38388#p38388</id>
		</entry>
</feed>
