<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Report Generator]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=45&amp;type=atom" />
	<updated>2012-12-24T02:59:50Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=45</id>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14777#p14777" />
			<content type="html"><![CDATA[<p>Moving further discussion on this topic to get report generator working fully to the new <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=14773">thread</a>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-24T02:59:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14777#p14777</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14775#p14775" />
			<content type="html"><![CDATA[<p>On my side, I have the 3127 install running with only repgen, the 3 sample reports run fine now, but still the button store item does not store anything. It makes it impossible for me to create a report with real content.</p><p>Also, the edit or delete buttons in the items list are not fonctionning.</p><p>What can I do?</p><p>When I click on the store item button, here are the requests that appear in mode saltrailer = 1:</p><p>select * from 0_chart_master,0_chart_types,0_chart_class where account_type=id and class_id=cid order by account_code<br />SELECT attrib FROM xx_reports WHERE typ=&#039;funct&#039;<br />SELECT * FROM xx_reports WHERE typ = &#039;block&#039;<br />SELECT&nbsp; * FROM xx_reports WHERE (typ = &#039;item&#039; AND id=&#039;6&#039;)</p><p>There is no insert instruction.</p>]]></content>
			<author>
				<name><![CDATA[gilles]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16855</uri>
			</author>
			<updated>2012-12-23T19:35:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14775#p14775</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14762#p14762" />
			<content type="html"><![CDATA[<p>Final Solution was the removal of a tab character after the &quot;=&quot; sign on line 23 in <strong>modules/repgen/hooks.php</strong>.<br />Any function that starts with an underscore should not have any preceding tabs in the current version of PHP (at least the one on Debian Squeeze) if immediately on the RHS of an assignment statement.</p><p>The PHP version tested was:<br /></p><div class="quotebox"><blockquote><p><strong># php -version</strong><br />PHP 5.3.3-7+squeeze14 with Suhosin-Patch (cli) (built: Aug&nbsp; 6 2012 20:08:59)<br />Copyright (c) 1997-2009 The PHP Group<br />Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies</p></blockquote></div><p>There are 83 files in the standard FA distribution having a tab preceding a gettext function - <strong>_(&quot;xxx&quot;)</strong> - usage and this has never been a problem. Only in this case it was an assignment to a variable (an array variable in this instance).</p><p>The attached patch addresses a similar &quot;=\t&quot; issue with <strong>modules/repgen/repgen_strings.php</strong> as well.</p><p><strong>Bugs yet to be fixed:</strong><br />On activating the Reports Generator extension, when we try to edit, delete or copy the first and only report in the default list, we get to see the report iself like pressing the Run button. The Edit, Copy and Delete functionality seems lost.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-22T01:24:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14762#p14762</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14761#p14761" />
			<content type="html"><![CDATA[<p>Hi Joe, that is what I would like to have.</p><p><s>In the hg 3127, it appears that the hooks.php of the modules are loaded before the translation strings get added and hence the non display. This is so since the section string is available only when install_access() is invoked.</s><br />Incidentally, the <strong>module/includes/acc_levels.php</strong> file does not seem to get used anywhere at all.</p><p>As a temporary workaround, I have commented out the define for the SS_REPORT_GENERATOR in the module&#039;s hooks.php and altered the install_access() function to be:<br /></p><div class="codebox"><pre><code>        function install_access()
        {

                $security_sections[&#039;SS_SPEC&#039;] = _(&quot;Special maintenance&quot;);

                $security_areas[&#039;SA_REPORT_GENERATOR&#039;] = array(SS_SPEC|130, _(&quot;Report Generator&quot;));

                return array($security_areas, $security_sections);
        }</code></pre></div><p>and it now shows up under <strong>Special maintenance</strong> section group.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-22T00:13:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14761#p14761</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14760#p14760" />
			<content type="html"><![CDATA[<p>This is what I have here:</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-12-21T23:25:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14760#p14760</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14759#p14759" />
			<content type="html"><![CDATA[<p>At Line 219 of <strong>admin/includes/security_roles.php</strong>&nbsp; the value of <br /></p><div class="codebox"><pre><code>$parms = array(229988, &quot;Report Generator&quot;, 116)
$ext = 3
$sec = 130</code></pre></div><p>Fresh install of hg 3127 with only the <strong>repgen</strong> module installed. Module works when activated and role enabled. Only the group label is not displayed.</p><p>Attached are the snapshots of before and after ticking the checkbox.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-21T23:11:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14759#p14759</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14757#p14757" />
			<content type="html"><![CDATA[<p>This is strange, I didn&#039;t get any errors in my installation. I do have the latest HG repository included, of course.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-12-21T22:54:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14757#p14757</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14756#p14756" />
			<content type="html"><![CDATA[<p>The key here is that the label Report generator for the group is not displayed in the roles and after uncommenting the debug code in admin/includes/security_roles.php (lines 217, 218) and turning $go_debug = 1 in the config.php, we get the following error:</p><div class="codebox"><pre><code>Bad section 38200:
Undefined offset: 229888 in file: /var/www/frontac/admin/security_roles.php at line 219</code></pre></div><p>The security role Report generator is displayed corrrectly but the group name (line preceeding it) &quot;Report Generator:&quot; is not displayed but only &quot;:&quot;.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-21T22:47:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14756#p14756</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14754#p14754" />
			<content type="html"><![CDATA[<p>Hello Guys,</p><p>I have just removed my installation of repgen and done a new install/activate exstension, Report Generator.</p><p>First I created the instance and secondly I activated it for the Training Co.</p><p>Then I imported the /sql/reports.sql manually into phpMyAdmin for the database.</p><p>Then, when looking in Setup Tab, the Report Generator is disabled (gray).</p><p>Then, go into Access Setup and select the role and at the very bottom you see the report regenerator. Check it and also check the next item.</p><p>Logout the company and login again.</p><p>Now you should be able to enter the Report Generator. And run the first report.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-12-21T22:40:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14754#p14754</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14751#p14751" />
			<content type="html"><![CDATA[<p>Compare the module&#039;s files with those from <a href="https://frontaccounting.com/wbt/media/download_gallery/repgen230.zip">Sep 2010 (v2.3.0)</a> taking into account the various extension parameters that have changed.</p><p><s>The error may be due to the<strong>modules/repgen/includes/acc_levels.php</strong>(must the file extension be<strong>.inc</strong>?) using the old style $security_areas.</s> This file is not used now.<br /></p><div class="codebox"><pre><code>$security_areas[&#039;SA_REPORT_GENERATOR&#039;] = array(SS_SPEC|155, _(&quot;Report Generator&quot;));</code></pre></div><p>Must the <strong>SS_SPEC|155</strong> above be <strong>SS_REPORT_GENERATOR|130</strong> ?</p><p><s>Optionally the missing single quote for the<strong>define</strong>in line 23 of modules/repgen/hooks.php:</s></p><p>I can see the <strong>Report Generator</strong> Menu link greyed out in <strong>Setup -&gt; Maintenance</strong> on the right side. It gets corrected when we tick the <strong>Setup -&gt; Access Setup</strong> last &quot;:&quot; role for System Administrator, then the Report Generator checkbox pops up and on ticking and saving, logging out and logging back in, the Report Generator works.</p><p>One correction may be needed in the <strong>modules/repgen/sql/reports.sql</strong> file at line 59, the <strong>id</strong> should be &#039;6&#039; instead of &#039;B1&#039; which is for blocks.</p><p>Some extra report definitions have been culled out of <a href="http://www.fvr.ro/service/modules/repgen/sql/reports.sql">www.fvr.ro</a> and attached herewith. Since the table <strong>xx_reports</strong> has no primary key, it seems to be accumulating duplicate records.</p><p>The <strong>installed_extensions.php</strong> file in the webroot uses <strong>true/false</strong> for the <strong>&#039;active&#039;</strong> attribute of the array whereas it is <strong>0/1</strong> in the <strong>company/#/installed_extensions.php</strong> files. Renumbering the array elements in both files in the same manner maintains status quo.</p><br /><p>Can the FA Admins correct it and upload a new PKG?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-21T18:09:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14751#p14751</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14750#p14750" />
			<content type="html"><![CDATA[<p>I made a frech install based on the lattest build 3127.<br />Install is ok and works fine.<br />Then I installed the module Report Generator through the application.<br />Surprisingly, the module is not visible in the Setup -&gt; Maintenance section.<br />I checked the Access setup, for the role of Administrator, the module report generator do not appear in the table of Access also.</p><p>I tried to access the report generator directly from the URL and got the following error message:<br />(url: http://mysite.com/frontacc_m/modules/repgen/repgen_select.php)</p><p>Undefined index: SA_REPORT_GENERATOR in file: /var/www/html/twenty-test/frontacc_m/includes/current_user.inc at line 155</p><p>I can provide access to this fresh install as admin, as I will remove it after problem is solved.</p>]]></content>
			<author>
				<name><![CDATA[gilles]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16855</uri>
			</author>
			<updated>2012-12-21T11:41:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14750#p14750</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14740#p14740" />
			<content type="html"><![CDATA[<p>Along with $go_debug, try $sql_trail as well and check the trail table.</p><p>Try the latest <a href="http://www.apmuthu.com/bugfixes/FrontAc_default_Mer_3127_2012-12-20.tar.gz">FA v2.3.13 Mercurial Build 3127</a> (it contains a few patches for installing modules)&nbsp; from scratch - do not try restoring any previous data and do a fresh install of the module and then fix any errors in the module files and try.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-20T18:05:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14740#p14740</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14738#p14738" />
			<content type="html"><![CDATA[<p>No information from the logs. apache logs do not give anything, and go_debug=1 or 2 also.<br />OS is Linux Centos.</p>]]></content>
			<author>
				<name><![CDATA[gilles]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16855</uri>
			</author>
			<updated>2012-12-20T17:57:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14738#p14738</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14734#p14734" />
			<content type="html"><![CDATA[<p>any errors in the logs?<br />Windows / Linux OS?<br />Any line endings issue?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-20T17:01:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14734#p14734</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Report Generator]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14732#p14732" />
			<content type="html"><![CDATA[<p>I installed repgen on top of version 2.3.13.<br />When I run the existing sample report, it works fine.<br />But when I create my own report and go to the next step (Page Definition for Strings), the button Store Item does not have any effect, and the list of items stays empty. When I run the report, I have a blank pdf.<br />Also, clicking on the button &quot;Back to Select a report&quot; I stay on the same page.</p><p>I already tried the go_debug = 1 and 2, I applied the fix regarding ereg and preg in the file reporting/includes/Workbook.php, but this still doesn&#039;t help. </p><p>I also applied the fix in repgen_const.inc:<br />//$_SESSION[&#039;get_text&#039;]-&gt;add_domain($_SESSION[&#039;language&#039;]-&gt;code, $path_to_root.&#039;/modules/repgen/lang&#039;);<br />$GetText-&gt;add_domain($_SESSION[&#039;language&#039;]-&gt;code, $path_to_root.&#039;/modules/repgen/lang&#039;);</p><p>Still not working.</p><p>My PHP version is PHP 5.3.3.</p><p>Does someone have repgen working with 2.3.13?</p><p>Any suggestion?</p>]]></content>
			<author>
				<name><![CDATA[gilles]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16855</uri>
			</author>
			<updated>2012-12-20T13:41:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14732#p14732</id>
		</entry>
</feed>
