<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Customer Balances by Dimension]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7077</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7077&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Customer Balances by Dimension.]]></description>
		<lastBuildDate>Fri, 27 Oct 2017 14:01:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Customer Balances by Dimension]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29260#p29260</link>
			<description><![CDATA[<p>If you add parameters make sure they are referenced correctly in the code where they are used.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 27 Oct 2017 14:01:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29260#p29260</guid>
		</item>
		<item>
			<title><![CDATA[Customer Balances by Dimension]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29255#p29255</link>
			<description><![CDATA[<p>Hi all,</p><p>I use the dimension module and all customers are in dimensions. I want to display customer balances by dimensions. </p><p>I&#039;ve added </p><div class="codebox"><pre><code>_(&#039;Dimension&#039;).&quot; &quot; =&gt; &#039;DIMENSIONS1&#039;,</code></pre></div><p> to <strong>_(&#039;Customer &amp;Balances&#039;)</strong> in reporting/reports_main.php and have modified the reporting/rep101.php in two areas</p><div class="codebox"><pre><code>$dimension = $_POST[&#039;PARAM_5&#039;];</code></pre></div><p>and </p><div class="codebox"><pre><code>    
    $sql = &quot;SELECT debtor_no, name, curr_code FROM &quot;.TB_PREF.&quot;debtors_master &quot;;
    if ($fromcust != ALL_TEXT)
        $sql .= &quot;WHERE debtor_no=&quot;.db_escape($fromcust);
    if ($dimension != 0) 
        $sql .= &quot; AND dimension_id=&quot;.$dimension;// I added this line
    $sql .= &quot; ORDER BY name&quot;;
    $result = db_query($sql, &quot;The customers could not be retrieved&quot;);</code></pre></div><p>When I select a dimension and click display, nothing happens - no pdf report. But if I don&#039;t select a dimension on the report page, the pdf report displays fine.</p><p>What am I doing wrong? </p><p>Thanks in advance.</p>]]></description>
			<author><![CDATA[null@example.com (davidkumi)]]></author>
			<pubDate>Fri, 27 Oct 2017 11:31:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29255#p29255</guid>
		</item>
	</channel>
</rss>
