<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Supplier Payment Report rep203]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8719&amp;type=atom" />
	<updated>2020-03-18T10:23:22Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8719</id>
		<entry>
			<title type="html"><![CDATA[Re: Supplier Payment Report rep203]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37157#p37157" />
			<content type="html"><![CDATA[<p>Good to hear it.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2020-03-18T10:23:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37157#p37157</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Supplier Payment Report rep203]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37156#p37156" />
			<content type="html"><![CDATA[<p>Thanks @kvvaradha</p><p>It works..as attached.</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2020-03-18T10:16:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37156#p37156</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Supplier Payment Report rep203]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37154#p37154" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2020-03-18T09:50:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37154#p37154</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Supplier Payment Report rep203]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37151#p37151" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2020-03-18T05:01:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37151#p37151</id>
		</entry>
</feed>
