<?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 purchasing/includes/db/invoice_db.inc]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10088</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10088&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Bug in purchasing/includes/db/invoice_db.inc.]]></description>
		<lastBuildDate>Sun, 20 Nov 2022 20:23:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Bug in purchasing/includes/db/invoice_db.inc]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41756#p41756</link>
			<description><![CDATA[<p>Thanks for detecting this.<br />This has been fixed and committed to stable repo.</p><p>A fixed file can be downloaded <a href="https://sourceforge.net/p/frontaccounting/git/ci/master/tree/purchasing/includes/db/invoice_db.inc">here</a>.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sun, 20 Nov 2022 20:23:36 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41756#p41756</guid>
		</item>
		<item>
			<title><![CDATA[Bug in purchasing/includes/db/invoice_db.inc]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41755#p41755</link>
			<description><![CDATA[<p>In file purchasing/includes/db/invoice_db.inc line 375:<br /></p><div class="codebox"><pre><code>    if (count($supp_trans-&gt;src_docs) == 1)
    {
        $invoice_no = key($supp_trans-&gt;src_docs);
        $invoice_alloc_balance = get_supp_trans_allocation_balance(ST_SUPPINVOICE, $supp_trans-&gt;src_docs);
        if ($invoice_alloc_balance &gt; 0) 
        {     //the invoice is not already fully allocated </code></pre></div><p>This line actually give error:<br /></p><div class="codebox"><pre><code>$invoice_alloc_balance = get_supp_trans_allocation_balance(ST_SUPPINVOICE, $supp_trans-&gt;src_docs);</code></pre></div><p>Because $supp_trans-&gt;src_docs is an array and it should be a string. I believe it should be:</p><div class="codebox"><pre><code>$invoice_alloc_balance = get_supp_trans_allocation_balance(ST_SUPPINVOICE, $invoice_no);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (barbarian)]]></author>
			<pubDate>Sun, 20 Nov 2022 13:59:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41755#p41755</guid>
		</item>
	</channel>
</rss>
