<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Supplier Payment Report rep203]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8719</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8719&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Supplier Payment Report rep203.]]></description>
		<lastBuildDate>Wed, 18 Mar 2020 10:23:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Supplier Payment Report rep203]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37157#p37157</link>
			<description><![CDATA[<p>Good to hear it.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Wed, 18 Mar 2020 10:23:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37157#p37157</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Payment Report rep203]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37156#p37156</link>
			<description><![CDATA[<p>Thanks @kvvaradha</p><p>It works..as attached.</p>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Wed, 18 Mar 2020 10:16:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37156#p37156</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Payment Report rep203]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37154#p37154</link>
			<description><![CDATA[<p>Within the rep203.php file. you need to change something to get it. </p><div class="codebox"><pre><code>function getTransactions($supplier, $date)
{
    $date = date2sql($date);
    $dec = user_price_dec();

    $sql = &quot;SELECT  supp_reference, tran_date, due_date, trans_no, type, rate,
            (ABS( ov_amount) + ABS( ov_gst) -  alloc) AS Balance,
            (ABS( ov_amount) + ABS( ov_gst) ) AS TranTotal
        FROM &quot;.TB_PREF.&quot;supp_trans
        WHERE  supplier_id = &#039;$supplier&#039;
        AND ROUND(ABS( ov_amount),$dec) + ROUND(ABS( ov_gst),$dec) - 
        ROUND( alloc,$dec) != 0
        AND  tran_date &lt;=&#039;$date&#039;
        ORDER BY  type,
             trans_no&quot;;

    return db_query($sql, &quot;No transactions were returned&quot;);
}</code></pre></div><p>Here you need to add some&nbsp; changes. </p><div class="codebox"><pre><code> 
function getTransactions($supplier, $date)
{
    $date = date2sql($date);
    $dec = user_price_dec();

    $sql = &quot;SELECT  reference AS supp_reference, tran_date, due_date, trans_no, type, rate,   // Here I have modified to make the reference as supp_reference
            (ABS( ov_amount) + ABS( ov_gst) -  alloc) AS Balance,
            (ABS( ov_amount) + ABS( ov_gst) ) AS TranTotal
        FROM &quot;.TB_PREF.&quot;supp_trans
        WHERE  supplier_id = &#039;$supplier&#039;
        AND ROUND(ABS( ov_amount),$dec) + ROUND(ABS( ov_gst),$dec) - 
        ROUND( alloc,$dec) != 0
        AND  tran_date &lt;=&#039;$date&#039;
        ORDER BY tran_date,  type,   // New Order by Here with tran_date
             trans_no&quot;;

    return db_query($sql, &quot;No transactions were returned&quot;);
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Wed, 18 Mar 2020 09:50:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37154#p37154</guid>
		</item>
		<item>
			<title><![CDATA[Supplier Payment Report rep203]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37151#p37151</link>
			<description><![CDATA[<p>Supplier Payment Report rep203 has two things that seem not correct; (to me at least).</p><p>1. Transaction # is showing Supplier Reference Instead.<br />2. Not sorted by date.. (a more logical display of info)... its sorted by some internal choice I guess</p><p>How can one correct the above?</p><p>As attached.</p>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Wed, 18 Mar 2020 05:01:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37151#p37151</guid>
		</item>
	</channel>
</rss>
