<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Customer Balances by Dimension]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7077&amp;type=atom" />
	<updated>2017-10-27T14:01:14Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7077</id>
		<entry>
			<title type="html"><![CDATA[Re: Customer Balances by Dimension]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29260#p29260" />
			<content type="html"><![CDATA[<p>If you add parameters make sure they are referenced correctly in the code where they are used.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-27T14:01:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29260#p29260</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Customer Balances by Dimension]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29255#p29255" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[davidkumi]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=14310</uri>
			</author>
			<updated>2017-10-27T11:31:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29255#p29255</id>
		</entry>
</feed>
