<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — get_stock_gl_code function called twice in the add_supp_invoice]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9910&amp;type=atom" />
	<updated>2022-07-15T06:43:05Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9910</id>
		<entry>
			<title type="html"><![CDATA[Re: get_stock_gl_code function called twice in the add_supp_invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41253#p41253" />
			<content type="html"><![CDATA[<p>Fixed and committed to stable repo. Thanks.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2022-07-15T06:43:05Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41253#p41253</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[get_stock_gl_code function called twice in the add_supp_invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41252#p41252" />
			<content type="html"><![CDATA[<p>@joe,&nbsp; While adding new purchase invoice,&nbsp; we are calling the add_supp_invoice function,&nbsp; Which actually called <strong>get_stock_gl_code</strong> twice inside the entered_grns foreach, remove the second one. </p><div class="codebox"><pre><code>    $stock_id = $entered_grn-&gt;item_code;
    $stock_gl_code = get_stock_gl_code($stock_id);</code></pre></div><p>And the previous one already exist. to handle further gl codes.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2022-07-15T05:41:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41252#p41252</id>
		</entry>
</feed>
