<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Monthly Clientwise Summary Report]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6748&amp;type=atom" />
	<updated>2017-06-22T08:23:09Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6748</id>
		<entry>
			<title type="html"><![CDATA[Re: Monthly Clientwise Summary Report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28055#p28055" />
			<content type="html"><![CDATA[<p>In FA 2.3.x it would be like:<br /></p><div class="codebox"><pre><code>SELECT MID(t.tran_date,1,7) AS Period, 
    t.debtor_no, 
    SUM(IF(t.type = 10 OR (t.type = 0 AND t.ov_amount&gt;0),
         ABS(t.ov_amount + t.ov_gst + t.ov_freight + t.ov_freight_tax + t.ov_discount), 0)) AS charges,
         SUM(IF(t.type != 10 AND NOT(t.type = 0 AND t.ov_amount&gt;0),
         ABS(t.ov_amount + t.ov_gst + t.ov_freight + t.ov_freight_tax + t.ov_discount) * -1, 0)) AS credits,
         SUM(IF(t.type != 10 AND NOT(t.type = 0 AND t.ov_amount&gt;0), t.alloc * -1, t.alloc)) AS Allocated,
         SUM(IF(t.type = 10, 1, -1) *
             (ABS(t.ov_amount + t.ov_gst + t.ov_freight + t.ov_freight_tax + t.ov_discount) - ABS(t.alloc))) AS OutStanding
FROM 0_debtor_trans t
WHERE  t.type &lt;&gt; 13
GROUP BY t.debtor_no, MID(t.tran_date,1,7);</code></pre></div><p>The <strong>t.type</strong> values alluded to above are taken from <a href="https://github.com/apmuthu/frontaccounting/blob/master/core/includes/types.inc">includes/types.inc</a> file.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-06-22T08:23:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28055#p28055</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Monthly Clientwise Summary Report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28054#p28054" />
			<content type="html"><![CDATA[<p>FA follows the principle of allocation of payments received towards invoices/charges. There may be other payments from the customer that will not find a place in the payments towards invoices.</p><p><strong>reporting/rep101.php</strong> is <a href="https://frontaccounting.com/fawiki/uploads/Help/Rep101_CustomerBalances.png">the report</a> you should modify to suit your needs - pivot the reporting across multiple periods</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-06-22T08:04:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28054#p28054</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Monthly Clientwise Summary Report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27698#p27698" />
			<content type="html"><![CDATA[<p>Like,</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Jan | Feb | March | ..........................................................................| Dec<br />ABC&nbsp; &nbsp; &nbsp;Receivable Balance&nbsp; &nbsp; &nbsp;10 | 15&nbsp; |&nbsp; 17 | ...............................................................................| 27<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Total Payments&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5&nbsp; &nbsp;| 10&nbsp; |&nbsp; 15 | ...............................................................................| 20<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Balance&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5&nbsp; |&nbsp; 5&nbsp; &nbsp; |&nbsp; 2&nbsp; | ................................................................................| 7</p><p>XYZ&nbsp; &nbsp; &nbsp; Receivable Balance&nbsp; &nbsp; 10 | 15&nbsp; |&nbsp; 17 | ...............................................................................| 27<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Total Payments&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5&nbsp; &nbsp;| 10&nbsp; |&nbsp; 15 | ...............................................................................| 20<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Balance&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5&nbsp; |&nbsp; 5&nbsp; &nbsp; |&nbsp; 2&nbsp; | ................................................................................| 7</p><p>Where ABC &amp; XYZ are customers, If anybody has developed this sort of reports or know how to do this, kindly help</p>]]></content>
			<author>
				<name><![CDATA[kiran230989]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=40386</uri>
			</author>
			<updated>2017-04-12T15:01:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27698#p27698</id>
		</entry>
</feed>
