<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — The behaviour of account percentage module]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=1454</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1454&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in The behaviour of account percentage module.]]></description>
		<lastBuildDate>Sun, 15 Aug 2010 08:40:43 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6728#p6728</link>
			<description><![CDATA[<p>OK I&#039;ve changed it to:<br />$acct_name = get_gl_account_name($acct_source_code);<br />$memo = &quot;$percent% from transactions of account: $acct_source_code - $acct_name for period $start_date to $end_date&quot;;</p><p>and I get the desired output.<br />thx<br /><img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (e-prast)]]></author>
			<pubDate>Sun, 15 Aug 2010 08:40:43 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6728#p6728</guid>
		</item>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6721#p6721</link>
			<description><![CDATA[<div class="quotebox"><cite>e-prast wrote:</cite><blockquote><p>OK I&#039;ve edited so it looks like this:<br />$memo = &quot;$percent% from transactions of account: $acct_source_code for period $start_date to $end_date&quot;;</p><p>and the output is:<br />2.5% from transactions of account: 41001000 for period 01/07/2010 to 31/07/2010</p><p>but my desired output is :<br />2.5% from transactions of account: 41001000 Sales Item-1 for period 01/07/2010 to 31/07/2010</p><p>how do I can get the account name not just the account code?</p><p>thx</p></blockquote></div><p>Sorry again for the slow reply.&nbsp; Try using get_gl_account_name($code).</p><p>That is:</p><p>$acct_name = get_gl_account_name($acct_source_code);<br />$memo = &quot;$percent% from transactions of account: $acct_name for period $start_date to $end_date&quot;;</p><p>I haven&#039;t tested that, but I think that&#039;ll do what you want.</p><p>Tom</p>]]></description>
			<author><![CDATA[null@example.com (tomhallman)]]></author>
			<pubDate>Fri, 13 Aug 2010 20:08:28 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6721#p6721</guid>
		</item>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6664#p6664</link>
			<description><![CDATA[<p>OK I&#039;ve edited so it looks like this:<br />$memo = &quot;$percent% from transactions of account: $acct_source_code for period $start_date to $end_date&quot;;</p><p>and the output is:<br />2.5% from transactions of account: 41001000 for period 01/07/2010 to 31/07/2010</p><p>but my desired output is :<br />2.5% from transactions of account: 41001000 Sales Item-1 for period 01/07/2010 to 31/07/2010</p><p>how do I can get the account name not just the account code?</p><p>thx</p>]]></description>
			<author><![CDATA[null@example.com (e-prast)]]></author>
			<pubDate>Thu, 05 Aug 2010 17:30:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6664#p6664</guid>
		</item>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6663#p6663</link>
			<description><![CDATA[<p>that would be nice, I&#039;ll edit the source.</p><p>although in my mind it&#039;s more like this</p><p>2,5% from transaction 41001000 Sales Item-1 period 01/07/2010 - 15/07/2010</p><p>41001000 sales item-1 is the account number, in case there&#039;s more than 1 sales account or if the percentage different between sales account (ex: 41001000 sales item-1, 41002000 sales item-2, 42001000 service),</p><p>and period is for tracking, so we reduce the risk to double post the percentage in case we run it multiple times in one month </p><p>thx</p>]]></description>
			<author><![CDATA[null@example.com (e-prast)]]></author>
			<pubDate>Thu, 05 Aug 2010 17:15:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6663#p6663</guid>
		</item>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6662#p6662</link>
			<description><![CDATA[<p>e-prast,</p><p>&nbsp; Sure.&nbsp; Would you like it to say something like, &quot;5% from transactions to: 41001000&quot;?&nbsp; If so, you can just edit line 149 of the run tool to look more like the commented out line 148.&nbsp; For example:</p><p>&nbsp; $memo = &quot;$percent% from transactions to: $acct_source_code&quot;;</p><p>&nbsp; That might be a quick fix for you!</p><p>Tom</p>]]></description>
			<author><![CDATA[null@example.com (tomhallman)]]></author>
			<pubDate>Thu, 05 Aug 2010 15:23:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6662#p6662</guid>
		</item>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6661#p6661</link>
			<description><![CDATA[<p>well because you want to patch it anyway can I ask for an &quot;default memo&quot; entry on the setting? so in the journal entry after we run the modules, the memo entry there won&#039;t empty and it is usefull for tracking journal, ofcourse we can still edit it manually but an entry on the setting would be nice). <br /><img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>thx</p>]]></description>
			<author><![CDATA[null@example.com (e-prast)]]></author>
			<pubDate>Thu, 05 Aug 2010 15:14:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6661#p6661</guid>
		</item>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6660#p6660</link>
			<description><![CDATA[<p>e-prast,</p><p>&nbsp; Hey, I think you might be right!&nbsp; I just skimmed over the code, and I think there may indeed be a bug if there&#039;s no dim to credit.&nbsp; I&#039;ll delve into that more soon to see what can be done and I&#039;ll submit a patch.</p><p>&nbsp; In the meantime, I&#039;m glad you found a workaround!&nbsp; Thanks for asking about the bug!</p><p>Tom</p>]]></description>
			<author><![CDATA[null@example.com (tomhallman)]]></author>
			<pubDate>Thu, 05 Aug 2010 14:56:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6660#p6660</guid>
		</item>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6659#p6659</link>
			<description><![CDATA[<p>Well actually I dont use dimension. I did create the dimension type 1 and no type 2.</p><p>After I put &quot;dimension 1 to credit&quot; entry on the editor and run it, it seems works, the journal entry is filled <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /> the credit entries on the journal is set to dimension I choose on the seeting.</p><p>But how about if I don&#039;t want my account percentage calculation and journalling related to certain&nbsp; dimension. <br />I mean if I let the dimension 1 or 2 blank on the editor, can I still use the modules? or is it really have to use dimension?</p><p>As for workaround on the journal entry form after running the tools I can edit the dimension back to blank (or another dimension) if it necessary anyway.</p><p>But it still feel nice knowing that the modules works for me.</p><p>thx</p>]]></description>
			<author><![CDATA[null@example.com (e-prast)]]></author>
			<pubDate>Thu, 05 Aug 2010 14:46:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6659#p6659</guid>
		</item>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6657#p6657</link>
			<description><![CDATA[<p>Hello e-prast,</p><p>&nbsp; Okay, so if I understand this correctly, you have two &quot;type 1&quot; dimensions and no type 2 dimensions.&nbsp; Is that right?</p><p>&nbsp; What happens if you run those last two SELECT statements directly in phpMyAdmin?&nbsp; Does anything show up?</p><p>Tom</p>]]></description>
			<author><![CDATA[null@example.com (tomhallman)]]></author>
			<pubDate>Thu, 05 Aug 2010 12:50:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6657#p6657</guid>
		</item>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6649#p6649</link>
			<description><![CDATA[<p>OK just comment line 161 as you said tom and run it. here is the sql :</p><p>SQL..</p><p>SELECT next_reference FROM 6_sys_types WHERE type_id = &#039;0&#039;</p><p>SQL..</p><p>SELECT * FROM 6_company WHERE coy_code=1</p><p>SQL..</p><p>SELECT * FROM 6_fiscal_year WHERE id=&#039;3&#039;</p><p>SQL..</p><p>SELECT * FROM 6_acct_percent_tool WHERE !inactive ORDER BY account_code_source</p><p>SQL..</p><p>SELECT * FROM 6_dimensions WHERE type_ = 1 ORDER BY reference ASC</p><p>SQL..</p><p>SELECT * FROM 6_dimensions WHERE type_ = 2 ORDER BY reference ASC</p><p>SQL..</p><p>SELECT SUM(amount) FROM 6_gl_trans<br />&nbsp; &nbsp; &nbsp; &nbsp; WHERE account=&#039;41001000&#039; AND tran_date &gt;= &#039;2010-07-01&#039; AND tran_date &lt;= &#039;2010-07-31&#039; AND dimension_id = &#039;1&#039; AND dimension2_id = &#039;0&#039;</p><p>SQL..</p><p>SELECT SUM(amount) FROM 6_gl_trans<br />&nbsp; &nbsp; &nbsp; &nbsp; WHERE account=&#039;41001000&#039; AND tran_date &gt;= &#039;2010-07-01&#039; AND tran_date &lt;= &#039;2010-07-31&#039; AND dimension_id = &#039;2&#039; AND dimension2_id = &#039;0&#039;</p>]]></description>
			<author><![CDATA[null@example.com (e-prast)]]></author>
			<pubDate>Thu, 05 Aug 2010 04:21:39 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6649#p6649</guid>
		</item>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6644#p6644</link>
			<description><![CDATA[<p>Hello all,</p><p>&nbsp; Sorry for the delay - just got back from vacation.</p><p>&nbsp; Briefly, the Account Percentages Run tool does the following when run:<br />&nbsp; * For each account percentage entry (as specified in the APT Editor)<br />&nbsp; &nbsp; * For each combination of dimensions 1 &amp; 2 (including the &quot;no dimension&quot;)<br />&nbsp; &nbsp; &nbsp; * Sum all journal entries to the source account over the specified time period, broken up by dimensions<br />&nbsp; &nbsp; &nbsp; * Get the specified percentage for that sum<br />&nbsp; &nbsp; &nbsp; * Add a credit journal entry to the specified credit account/dimensions with the given percentage<br />&nbsp; &nbsp; &nbsp; * Add a debit journal entry to the specified debit account (and source dimensions) with the given percentage<br />&nbsp; * Redirect to a journal entry page with all these journal entries already loaded in</p><p>&nbsp; e-prast, to see the SQL that otherwise disappears too fast after running the tool, you can open this file:<br />&nbsp; &lt;FA root&gt;/modules/acct_percent_tool/acct_percent_run.php and comment out the line that says &quot;meta_forward(...)&quot;, about line 161.&nbsp; Then see what SQL is there.</p><p>&nbsp; Joe &amp; Janusz, this module has only been tested against a code base from January 25.&nbsp; (We have it in mind to get caught up soon!)&nbsp; Have there been changes to the code that handles the retrieving of dimensions or accounts since then?&nbsp; I wonder if that could be part of the problem...?</p><p>Tom</p>]]></description>
			<author><![CDATA[null@example.com (tomhallman)]]></author>
			<pubDate>Tue, 03 Aug 2010 21:10:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6644#p6644</guid>
		</item>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6603#p6603</link>
			<description><![CDATA[<div class="quotebox"><cite>tomhallman wrote:</cite><blockquote><p>Hello e-prast,</p><p>Thanks for sending that.&nbsp; I was thinking more of the config option &quot;show_sql&quot; rather than the sql trail.&nbsp; That way you&#039;ll see the SQL right on the account percentages module page.</p><p>Still, if I&#039;m reading the sql trail correctly, it looks like there&#039;s a number of errors with the SQL queries.&nbsp; Lots of &quot;can&#039;t update and can&#039;t retrieve&quot; stuff.&nbsp; (See entries 61-68 and 74-83)</p><p>When you use the Account Percentages Editor (not the &quot;Run&quot; part), does it save your changes between page loads?&nbsp; That is, save the values in the editor, leave the page, and then come back to the editor.</p><p>Joe/Janusz, do those errors make sense to you?&nbsp; Any thoughts?&nbsp; It doesn&#039;t seem to be limited to the account percentages tool to me...</p><p>Tom</p></blockquote></div><p>when I&#039;m using the editor my settings is saved, I&#039;ve checked the database too and here is the sql dump:<br />--------------------------------------------------------------------------------------------------------------------------------------------------------</p><p>SET SQL_MODE=&quot;NO_AUTO_VALUE_ON_ZERO&quot;;</p><br /><p>/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;<br />/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;<br />/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;<br />/*!40101 SET NAMES utf8 */;</p><p>--<br />-- Database: `frontaccount.tes`<br />--</p><p>-- --------------------------------------------------------</p><p>--<br />-- Table structure for table `6_acct_percent_tool`<br />--</p><p>CREATE TABLE IF NOT EXISTS `6_acct_percent_tool` (<br />&nbsp; `id` int(11) NOT NULL AUTO_INCREMENT,<br />&nbsp; `account_code_source` varchar(11) NOT NULL DEFAULT &#039;&#039;,<br />&nbsp; `account_code_credit` varchar(11) NOT NULL DEFAULT &#039;&#039;,<br />&nbsp; `dimension1_credit` int(11) NOT NULL DEFAULT &#039;0&#039;,<br />&nbsp; `dimension2_credit` int(11) NOT NULL DEFAULT &#039;0&#039;,<br />&nbsp; `account_code_debit` varchar(11) NOT NULL DEFAULT &#039;&#039;,<br />&nbsp; `percent` double DEFAULT NULL,<br />&nbsp; `inactive` tinyint(1) NOT NULL DEFAULT &#039;0&#039;,<br />&nbsp; PRIMARY KEY (`id`)<br />) ENGINE=InnoDB&nbsp; DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;</p><p>--<br />-- Dumping data for table `6_acct_percent_tool`<br />--</p><p>INSERT INTO `6_acct_percent_tool` (`id`, `account_code_source`, `account_code_credit`, `dimension1_credit`, `dimension2_credit`, `account_code_debit`, `percent`, `inactive`) VALUES<br />(1, &#039;41001000&#039;, &#039;21103900&#039;, 0, 0, &#039;61901900&#039;, 2.5, 0);<br />----------------------------------------------------------------------------------------------------------------------------------------------------------</p><p>when using the editor here is the show_sql in view mode:</p><p>SELECT * FROM 6_acct_percent_tool WHERE !inactive ORDER BY account_code_source</p><p>SQL..</p><p>SELECT * FROM 6_chart_master WHERE account_code=&#039;41001000&#039;</p><p>SQL..</p><p>SELECT * FROM 6_chart_master WHERE account_code=&#039;21103900&#039;</p><p>SQL..</p><p>SELECT * FROM 6_dimensions&nbsp; &nbsp; WHERE id=&#039;0&#039;</p><p>SQL..</p><p>SELECT * FROM 6_dimensions&nbsp; &nbsp; WHERE id=&#039;0&#039;</p><p>SQL..</p><p>SELECT * FROM 6_chart_master WHERE account_code=&#039;61901900&#039;<br />---------</p><p>and this the show_sql when I try to edit the settings in editor:</p><p>Source Account:SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code<br />Account to credit:SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code<br />Dimension 1 to credit:SELECT id, CONCAT(reference,&#039;&nbsp; &#039;,name) as ref FROM 6_dimensions WHERE (closed=0) ORDER BY reference<br />Dimension 2 to credit:SELECT id, CONCAT(reference,&#039;&nbsp; &#039;,name) as ref FROM 6_dimensions WHERE (closed=0) ORDER BY reference<br />Account to debit:SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code</p><br /><p>when I click run it seems there&#039;s sql&nbsp; printed on screen but it&#039;s so fast so I can&#039;t put it here and then the journal entry show&#039;s with blank entries and here is the sql:</p><p>SELECT id FROM 6_quick_entries WHERE type=&#039;3&#039;<br />SELECT * FROM 6_company WHERE coy_code=1<br />SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code</p><p>SELECT id, CONCAT(reference,&#039;&nbsp; &#039;,name) as ref FROM 6_dimensions WHERE (closed=0 AND type_=1) ORDER BY reference</p><br /><p>is there something that I miss?</p>]]></description>
			<author><![CDATA[null@example.com (e-prast)]]></author>
			<pubDate>Mon, 26 Jul 2010 03:43:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6603#p6603</guid>
		</item>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6591#p6591</link>
			<description><![CDATA[<p>Tom</p><p>Using the sqltrail for myself, I can say that what is reported is incorrect.</p><p>I had a lot of&nbsp; errors incorrectly reported, many&nbsp; being the same as the ones reported in this thread.</p><p>An explanation on the process behing the report would be very usefull.</p><p>As you, I think that &quot;show_sql&quot;&nbsp; would be more usefull.</p><p>Gaston</p>]]></description>
			<author><![CDATA[null@example.com (huotg01)]]></author>
			<pubDate>Sat, 24 Jul 2010 16:35:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6591#p6591</guid>
		</item>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6590#p6590</link>
			<description><![CDATA[<p>Hello e-prast,</p><p>Thanks for sending that.&nbsp; I was thinking more of the config option &quot;show_sql&quot; rather than the sql trail.&nbsp; That way you&#039;ll see the SQL right on the account percentages module page.</p><p>Still, if I&#039;m reading the sql trail correctly, it looks like there&#039;s a number of errors with the SQL queries.&nbsp; Lots of &quot;can&#039;t update and can&#039;t retrieve&quot; stuff.&nbsp; (See entries 61-68 and 74-83)</p><p>When you use the Account Percentages Editor (not the &quot;Run&quot; part), does it save your changes between page loads?&nbsp; That is, save the values in the editor, leave the page, and then come back to the editor.</p><p>Joe/Janusz, do those errors make sense to you?&nbsp; Any thoughts?&nbsp; It doesn&#039;t seem to be limited to the account percentages tool to me...</p><p>Tom</p>]]></description>
			<author><![CDATA[null@example.com (tomhallman)]]></author>
			<pubDate>Sat, 24 Jul 2010 15:42:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6590#p6590</guid>
		</item>
		<item>
			<title><![CDATA[Re: The behaviour of account percentage module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6582#p6582</link>
			<description><![CDATA[<p>here is the sql_dump when I run the modules <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />sorry if I put it here. the attachment seems don&#039;t work for me so here it is:<br />-------------------------------------------------------------------------------------------</p><p>SET SQL_MODE=&quot;NO_AUTO_VALUE_ON_ZERO&quot;;</p><br /><p>/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;<br />/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;<br />/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;<br />/*!40101 SET NAMES utf8 */;</p><p>--<br />-- Database: `frontaccount.tes`<br />--</p><p>-- --------------------------------------------------------</p><p>--<br />-- Table structure for table `6_sql_trail`<br />--</p><p>CREATE TABLE IF NOT EXISTS `6_sql_trail` (<br />&nbsp; `id` int(11) unsigned NOT NULL AUTO_INCREMENT,<br />&nbsp; `sql` text NOT NULL,<br />&nbsp; `result` tinyint(1) NOT NULL,<br />&nbsp; `msg` varchar(255) NOT NULL,<br />&nbsp; PRIMARY KEY (`id`)<br />) ENGINE=MyISAM&nbsp; DEFAULT CHARSET=latin1 AUTO_INCREMENT=86 ;</p><p>--<br />-- Dumping data for table `6_sql_trail`<br />--</p><p>INSERT INTO `6_sql_trail` (`id`, `sql`, `result`, `msg`) VALUES<br />(45, &#039;SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code&#039;, 1, &#039;&#039;),<br />(44, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;61901900&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(42, &#039;SELECT * FROM 6_dimensions&nbsp; &nbsp; WHERE id=&amp;#039;0&amp;#039;&#039;, 1, &#039;The dimension could not be retrieved&#039;),<br />(43, &#039;SELECT * FROM 6_dimensions&nbsp; &nbsp; WHERE id=&amp;#039;0&amp;#039;&#039;, 1, &#039;The dimension could not be retrieved&#039;),<br />(41, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;21103900&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(40, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;41001000&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(39, &#039;SELECT * FROM 6_acct_percent_tool WHERE !inactive ORDER BY account_code_source&#039;, 1, &#039;could not get account percentage entries&#039;),<br />(38, &#039;DELETE FROM 6_acct_percent_tool WHERE id = 2&#039;, 1, &#039;could not delete account percentage entry&#039;),<br />(37, &#039;SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code&#039;, 1, &#039;&#039;),<br />(36, &#039;SELECT id, CONCAT(reference,&amp;#039;&nbsp; &amp;#039;,name) as ref FROM 6_dimensions WHERE (closed=0) ORDER BY reference&#039;, 1, &#039;&#039;),<br />(35, &#039;SELECT id, CONCAT(reference,&amp;#039;&nbsp; &amp;#039;,name) as ref FROM 6_dimensions WHERE (closed=0) ORDER BY reference&#039;, 1, &#039;&#039;),<br />(33, &#039;SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code&#039;, 1, &#039;&#039;),<br />(34, &#039;SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code&#039;, 1, &#039;&#039;),<br />(32, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;61901900&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(31, &#039;SELECT * FROM 6_dimensions&nbsp; &nbsp; WHERE id=&amp;#039;0&amp;#039;&#039;, 1, &#039;The dimension could not be retrieved&#039;),<br />(29, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;21103900&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(30, &#039;SELECT * FROM 6_dimensions&nbsp; &nbsp; WHERE id=&amp;#039;0&amp;#039;&#039;, 1, &#039;The dimension could not be retrieved&#039;),<br />(27, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;11111990&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(28, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;41001000&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(26, &#039;SELECT * FROM 6_dimensions&nbsp; &nbsp; WHERE id=&amp;#039;0&amp;#039;&#039;, 1, &#039;The dimension could not be retrieved&#039;),<br />(25, &#039;SELECT * FROM 6_dimensions&nbsp; &nbsp; WHERE id=&amp;#039;0&amp;#039;&#039;, 1, &#039;The dimension could not be retrieved&#039;),<br />(23, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;11111990&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(24, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;11111990&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(22, &#039;SELECT * FROM 6_acct_percent_tool WHERE !inactive ORDER BY account_code_source&#039;, 1, &#039;could not get account percentage entries&#039;),<br />(46, &#039;SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code&#039;, 1, &#039;&#039;),<br />(47, &#039;SELECT id, CONCAT(reference,&amp;#039;&nbsp; &amp;#039;,name) as ref FROM 6_dimensions WHERE (closed=0) ORDER BY reference&#039;, 1, &#039;&#039;),<br />(48, &#039;SELECT id, CONCAT(reference,&amp;#039;&nbsp; &amp;#039;,name) as ref FROM 6_dimensions WHERE (closed=0) ORDER BY reference&#039;, 1, &#039;&#039;),<br />(49, &#039;SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code&#039;, 1, &#039;&#039;),<br />(50, &#039;SELECT * FROM 6_acct_percent_tool WHERE !inactive ORDER BY account_code_source&#039;, 1, &#039;could not get account percentage entries&#039;),<br />(51, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;41001000&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(52, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;21103900&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(53, &#039;SELECT * FROM 6_dimensions&nbsp; &nbsp; WHERE id=&amp;#039;0&amp;#039;&#039;, 1, &#039;The dimension could not be retrieved&#039;),<br />(54, &#039;SELECT * FROM 6_dimensions&nbsp; &nbsp; WHERE id=&amp;#039;0&amp;#039;&#039;, 1, &#039;The dimension could not be retrieved&#039;),<br />(55, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;61901900&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(56, &#039;SELECT * FROM 6_acct_percent_tool WHERE id = 1&#039;, 1, &#039;could not get account percentage entry&#039;),<br />(57, &#039;SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code&#039;, 1, &#039;&#039;),<br />(58, &#039;SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code&#039;, 1, &#039;&#039;),<br />(59, &#039;SELECT id, CONCAT(reference,&amp;#039;&nbsp; &amp;#039;,name) as ref FROM 6_dimensions WHERE (closed=0) ORDER BY reference&#039;, 1, &#039;&#039;),<br />(60, &#039;SELECT id, CONCAT(reference,&amp;#039;&nbsp; &amp;#039;,name) as ref FROM 6_dimensions WHERE (closed=0) ORDER BY reference&#039;, 1, &#039;&#039;),<br />(61, &#039;SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code&#039;, 1, &#039;&#039;),<br />(62, &#039;UPDATE 6_acct_percent_tool SET account_code_source=41001000, \r\n&nbsp; &nbsp; &nbsp; &nbsp; account_code_credit=21103900, dimension1_credit=0, \r\n&nbsp; &nbsp; &nbsp; &nbsp; dimension2_credit=0, account_code_debit=61901900, \r\n&nbsp; &nbsp; &nbsp; &nbsp; percent=&amp;#039;2.5&amp;#039; WHERE id = 1&#039;, 1, &#039;could not update account percentage entry&#039;),<br />(63, &#039;SELECT * FROM 6_acct_percent_tool WHERE !inactive ORDER BY account_code_source&#039;, 1, &#039;could not get account percentage entries&#039;),<br />(64, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;41001000&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(65, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;21103900&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(66, &#039;SELECT * FROM 6_dimensions&nbsp; &nbsp; WHERE id=&amp;#039;0&amp;#039;&#039;, 1, &#039;The dimension could not be retrieved&#039;),<br />(67, &#039;SELECT * FROM 6_dimensions&nbsp; &nbsp; WHERE id=&amp;#039;0&amp;#039;&#039;, 1, &#039;The dimension could not be retrieved&#039;),<br />(68, &#039;SELECT * FROM 6_chart_master WHERE account_code=&amp;#039;61901900&amp;#039;&#039;, 1, &#039;could not get gl account&#039;),<br />(69, &#039;SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code&#039;, 1, &#039;&#039;),<br />(70, &#039;SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code&#039;, 1, &#039;&#039;),<br />(71, &#039;SELECT id, CONCAT(reference,&amp;#039;&nbsp; &amp;#039;,name) as ref FROM 6_dimensions WHERE (closed=0) ORDER BY reference&#039;, 1, &#039;&#039;),<br />(72, &#039;SELECT id, CONCAT(reference,&amp;#039;&nbsp; &amp;#039;,name) as ref FROM 6_dimensions WHERE (closed=0) ORDER BY reference&#039;, 1, &#039;&#039;),<br />(73, &#039;SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code&#039;, 1, &#039;&#039;),<br />(74, &#039;SELECT next_reference FROM 6_sys_types WHERE type_id = &amp;#039;0&amp;#039;&#039;, 1, &#039;The last transaction ref for 0 could not be retreived&#039;),<br />(75, &#039;SELECT * FROM 6_company WHERE coy_code=1&#039;, 1, &#039;The company preferences could not be retrieved&#039;),<br />(76, &#039;SELECT * FROM 6_fiscal_year WHERE id=&amp;#039;3&amp;#039;&#039;, 1, &#039;could not get current fiscal year&#039;),<br />(77, &#039;SELECT * FROM 6_acct_percent_tool WHERE !inactive ORDER BY account_code_source&#039;, 1, &#039;could not get account percentage entries&#039;),<br />(78, &#039;SELECT * FROM 6_dimensions WHERE type_ = 1 ORDER BY reference ASC&#039;, 1, &#039;The dimensions could not be retrieved&#039;),<br />(79, &#039;SELECT * FROM 6_dimensions WHERE type_ = 2 ORDER BY reference ASC&#039;, 1, &#039;The dimensions could not be retrieved&#039;),<br />(80, &#039;SELECT SUM(amount) FROM 6_gl_trans\r\n&nbsp; &nbsp; &nbsp; &nbsp; WHERE account=&amp;#039;41001000&amp;#039; AND tran_date &amp;gt;= &amp;#039;2010-07-01&amp;#039; AND tran_date &amp;lt;= &amp;#039;2010-07-31&amp;#039; AND dimension_id = &amp;#039;1&amp;#039; AND dimension2_id = &amp;#039;0&amp;#039;&#039;, 1, &#039;Transactions for account 41001000 could not be calculated&#039;),<br />(81, &#039;SELECT SUM(amount) FROM 6_gl_trans\r\n&nbsp; &nbsp; &nbsp; &nbsp; WHERE account=&amp;#039;41001000&amp;#039; AND tran_date &amp;gt;= &amp;#039;2010-07-01&amp;#039; AND tran_date &amp;lt;= &amp;#039;2010-07-31&amp;#039; AND dimension_id = &amp;#039;2&amp;#039; AND dimension2_id = &amp;#039;0&amp;#039;&#039;, 1, &#039;Transactions for account 41001000 could not be calculated&#039;),<br />(82, &#039;SELECT id FROM 6_quick_entries WHERE type=&amp;#039;3&amp;#039;&#039;, 1, &#039;could not retreive quick entries&#039;),<br />(83, &#039;SELECT * FROM 6_company WHERE coy_code=1&#039;, 1, &#039;The company preferences could not be retrieved&#039;),<br />(84, &#039;SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM 6_chart_master chart,6_chart_types type\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE chart.account_type=type.id ORDER BY type.id,account_code&#039;, 1, &#039;&#039;),<br />(85, &#039;SELECT id, CONCAT(reference,&amp;#039;&nbsp; &amp;#039;,name) as ref FROM 6_dimensions WHERE (closed=0 AND type_=1) ORDER BY reference&#039;, 1, &#039;&#039;);</p>]]></description>
			<author><![CDATA[null@example.com (e-prast)]]></author>
			<pubDate>Fri, 23 Jul 2010 13:44:15 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6582#p6582</guid>
		</item>
	</channel>
</rss>
