<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — More detail needed for dimensions]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5926</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5926&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in More detail needed for dimensions.]]></description>
		<lastBuildDate>Tue, 29 Sep 2015 16:10:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24390#p24390</link>
			<description><![CDATA[<p>Thanks.</p><p>Was also thinking in the line of dotproject or openproject.</p><p>Will have a look at your suggestion.</p><p>Regards</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Tue, 29 Sep 2015 16:10:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24390#p24390</guid>
		</item>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24388#p24388</link>
			<description><![CDATA[<p>You might want to use <a href="https://github.com/simpleinvoices/simpleinvoices">SimpleInvoices</a> to manage each project as a client and then get the summary each month into your FA. You might want to try out <a href="https://github.com/apmuthu/simpleinvoices">my fork of it</a> as well.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 29 Sep 2015 14:20:42 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24388#p24388</guid>
		</item>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24387#p24387</link>
			<description><![CDATA[<p>Some clients work on projects and their clients whom they do the project for wants the outstanding amounts on the invoices per project. </p><p>I thought that if you setup the project as a branch of the client that it might work, but you can not draw reports for the branch, only for the main company.</p><p>I also thought that you could setup each project with that client as a separate client, but then it becomes a nightmare to keep track of the cost items for that project.</p><p>Seems to be a hornet&#039;s nest like you say.</p><p>I am thinking of using an open source project management software for the tracking and costing of the project and then monthly bring in the total cost before invoicing from FA.</p><p>Regards</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Tue, 29 Sep 2015 12:38:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24387#p24387</guid>
		</item>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24376#p24376</link>
			<description><![CDATA[<p>The balances come from a different function. You could however, iterate within the loop using a variable to hold the sum (and the logic of date differences) to achieve what you want.</p><p>You have literally opened a can of worms here. Hope FA 2.4 addresses it better. Thanks for stirring up the proverbial hornet&#039;s nest and lets see what good comes of it.</p><p>You could test out the rep101.php with dimensions and report your findings. I do not see the use of any Dimensions in it.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 28 Sep 2015 16:04:38 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24376#p24376</guid>
		</item>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24375#p24375</link>
			<description><![CDATA[<p>Thanks, I assumed that it is the case, but would not have an idea where to begin to call this new function. in Rep108.pdf.</p><p>Your new.zip change works great accept for the Total Balance. </p><p>Is there a way that one could have a sub balance for the dimension and then the total balance below?</p><p>Would that be the same if one would use dimensions to filter in Customer Balances report Report101.pdf</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Mon, 28 Sep 2015 16:01:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24375#p24375</guid>
		</item>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24373#p24373</link>
			<description><![CDATA[<p>A Customer&#039;s due is on the whole and not just for a specific dimension. That is why the function <strong>get_customer_details()</strong> (defined in <strong>sales/includes/db/customers_db.inc</strong>) is used to get the balances and it does not bother about the dimensions. If you want it to filter by dimension, copy over the function to another name in the rep108.php and put in your dimension filter and call this new function in the rep108.php&nbsp; instead of the old one.</p><p>The attachment is from the demo CoA and it does not illustrate your case and is here only for there report format.</p><p>This is probably why the dimensions were not included in this report!</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 28 Sep 2015 15:46:36 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24373#p24373</guid>
		</item>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24370#p24370</link>
			<description><![CDATA[<p>Is there a way that I can send you copy of the report with the data?</p><p>At the bottom of the reports where it reads: &quot;Total Balance&quot; it is the total balance for all the dimensions relating to that on customer, instead of the Total for that one selected dimension only.</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Mon, 28 Sep 2015 13:28:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24370#p24370</guid>
		</item>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24369#p24369</link>
			<description><![CDATA[<p>Apmuthu</p><p>The reports is providing the data require as per your zip file above.</p><p>When a dimension is selected for the report for that customer, it lists the correct entries in each line.</p><p>The Total at the bottom of the Statement report is the Total for all the dimensions for that customer, not just the total for specific Dimension selected.</p><p>I do not know if the above would fix the issue? It seems to the same as the info in the attached zip folder above.</p><p>regards</p><p>Wynand</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Mon, 28 Sep 2015 13:21:54 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24369#p24369</guid>
		</item>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24367#p24367</link>
			<description><![CDATA[<p>Unfortunately, this report has not been coded for excel and hence the choice is not there in the menu.</p><p>The simulation of the <strong>sql</strong> in the <strong>function getTransactions()</strong> in <strong>reporting/rep108.php</strong> using the <strong>en_US-demo.sql</strong> Chart of Accounts is illustrated in the attachment herein - it contains the raw table data and the sql results which includes the CUSTCREDIT entries as well. The Simulation SQL is:<br /></p><div class="codebox"><pre><code>SET @date_due := &#039;2014-09-23&#039;;
SET @date_now := &#039;2014-07-25&#039;;
SET @debtor_no := 3;
SET @dimension_id := 2; -- Dimension 1
-- SET @dimension2_id := 2; -- Dimension 2

-- Taken from defines in includes/types.inc
-- ST_SALESINVOICE = 10
-- ST_CUSTCREDIT   = 11
-- ST_CUSTDELIVERY = 13


SELECT  dt.*,
        (ov_amount + ov_gst + ov_freight + ov_freight_tax + ov_discount) AS TotalAmount, alloc AS Allocated,
    ((TYPE = 10) AND due_date &lt; @date_now) AS OverDue
FROM 1_debtor_trans dt
WHERE tran_date &lt;= @date_due 
  AND debtor_no = @debtor_no
  AND TYPE &lt;&gt; 13
  AND ABS(ov_amount + ov_gst + ov_freight + ov_freight_tax + ov_discount) &gt; 1e-6
-- if (!$show_also_allocated)
-- AND ABS(ABS(ov_amount + ov_gst + ov_freight + ov_freight_tax + ov_discount) - alloc) &gt; 1e-6
-- Dimension 1
 AND dimension_id = @dimension_id
-- Dimension 2
-- AND dimension2_id = @dimension2_id
ORDER BY tran_date;</code></pre></div><p><strong>FLOAT_COMP_DELTA</strong> defined as a FA constant in PHP is used instead of <strong>1e-6</strong> in some places.</p><p>You may use the above in any MySQL client and execute them all on your database and check the results.</p><p>I see no reason why your output does not conform to what is expected. Please clear your report and js cache and try it again and use appropriate values for the constants defined in the code above on your database and verify the results to see if it matches your output.</p><p>The dimension name comes from another table and you will have to alter the sql to join it to that table like:<br /></p><div class="codebox"><pre><code>SELECT ....., d1.name AS D1Name
-- Dimension 2 if used
-- , d2. name A D2Name 
FROM 1_debtor_trans dt 
LEFT JOIN 1_dimensions d1 ON (dt.dimension_id=d1.id)
-- Dimension 2 if used
-- LEFT JOIN 1_dimensions d2 ON (dt.dimension2_id=d2.id)
WHERE ......
ORDER BY tran_date;</code></pre></div><p>Then use the D1Name (and D2Name if appropriate) as desired in the report. Experiment with INNER JOIN instead of LEFT JOIN for the first or both instances as desired.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 28 Sep 2015 13:03:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24367#p24367</guid>
		</item>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24366#p24366</link>
			<description><![CDATA[<p>HI</p><p>It would also be great if we could save the statement as Excel.</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Mon, 28 Sep 2015 11:09:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24366#p24366</guid>
		</item>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24365#p24365</link>
			<description><![CDATA[<p>Hi</p><p>Let me start by thanking you for your input. </p><p>Have replaced the files. The report does give the info required, but there are two issues that I can pick up:</p><p>1. The dimension Name is not displayed anywhere on the Statement<br />2. The dimension total is the same as the total outstanding for all the dimensions on that particular client and not just for the invoices outstanding for the specific dimension.</p><p>For example:</p><p>Dimension A and Dimension B is linked to the same customer. Drawing a reports then on the customer with no dimension selected gives you the answer for the total outstanding for A+B.</p><p>when selecting Dimension A, the Invoices and amounts listed in the detail matches the dimension, but the total for the Statement is still A+B instead of the total only for A</p><p>Hopes this makes sense, but it gives a great platform to work from.</p><p>Regards</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Mon, 28 Sep 2015 11:01:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24365#p24365</guid>
		</item>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24243#p24243</link>
			<description><![CDATA[<p>That would be <strong>rep108.php</strong> file along with form field entries coming from the <strong>reports_main.php</strong> file.</p><p>After backing up the files, overwrite the files in the reporting folder with the ones in the attachment and see if it is what you want.</p><p><strong>rep108.php</strong> in it&#039;s <strong>function getTransactions()</strong> has an sql statement that refers to just 1 table where the fields can be written without the table name prefix.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 09 Sep 2015 20:15:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24243#p24243</guid>
		</item>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24238#p24238</link>
			<description><![CDATA[<p>Hi</p><p>I think that the statement report where invoices and payments are listed could work if you can search for a specific dimension attached to that Customer.&nbsp; The customer balances report can also work.</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Wed, 09 Sep 2015 16:39:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24238#p24238</guid>
		</item>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24237#p24237</link>
			<description><![CDATA[<p>Which specific report (repXXX.php) are you referring to - maybe we can alter it&#039;s sql to include a dimension filter to get what you want. The Wiki has a <a href="https://frontaccounting.com/fawiki/index.php?n=Help.ReportsAndAnalysis">list of reports</a> and their screenshots.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 09 Sep 2015 05:39:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24237#p24237</guid>
		</item>
		<item>
			<title><![CDATA[Re: More detail needed for dimensions]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24235#p24235</link>
			<description><![CDATA[<p>I will have to try and figure out these tags since there is not a lot of info.</p><p>It seems that all the posts regarding tags deals with income statements only, and will not provide me with a list of invoices that the dimension was attached to.</p><p>when for example I have a dimension A and dimension B on Level1 and I need to have a list of invoices for list be, it is not possible.</p><p>I do not see how using tags will provide me with that information if the only place where tags can be used is in the Income Statement report.</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Tue, 08 Sep 2015 21:08:30 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24235#p24235</guid>
		</item>
	</channel>
</rss>
