<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Requisition Module Not Working]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3634&amp;type=atom" />
	<updated>2013-01-17T08:46:09Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3634</id>
		<entry>
			<title type="html"><![CDATA[Re: Requisition Module Not Working]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15096#p15096" />
			<content type="html"><![CDATA[<p>Setup / Install/activate extensions / select your company / deactivate Requisitions / Update<br />then activate Requisitions again &amp; problem solved!</p><p>Rene</p><div class="quotebox"><cite>DotNM wrote:</cite><blockquote><p>Hi all,</p><p>I&#039;m relatively new to FrontAccounting and am looking at it for accounting for a small non-profit organization I&#039;m involved with.&nbsp; I downloaded and installed it successfully.&nbsp; I also downloaded the Requisitions Module through the Install/Activate Extensions screen but it seems to not work.&nbsp; When I click on Requisition Entries, I get the following message:</p><p>DATABASE ERROR : could not get all requisitions<br />error code : 1146<br />error message : Table &#039;front.0_requisitions&#039; doesn&#039;t exist<br />sql that failed was : SELECT * FROM 0_requisitions WHERE (completed = 0) AND !inactive</p><p>Clicking Requisition Allocations gives this error:</p><p>DATABASE ERROR : could not get all requisition_details<br />error code : 1146<br />error message : Table &#039;front.0_requisition_details&#039; doesn&#039;t exist<br />sql that failed was : SELECT * FROM 0_item_codes ic INNER JOIN 0_requisition_details rd ON ic.item_code = rd.item_code INNER JOIN 0_requisitions r ON rd.requisition_id = r.requisition_id LEFT JOIN 0_suppliers s ON rd.supplier_id = s.supplier_id WHERE (r.completed = 1) AND (rd.lpo_id = 0) ORDER BY r.requisition_id</p><p>Does anyone know how to fix the error and get the Requisitions Module operational?</p><p>Thanks in advance!</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[doitashimashite]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17099</uri>
			</author>
			<updated>2013-01-17T08:46:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15096#p15096</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Requisition Module Not Working]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14733#p14733" />
			<content type="html"><![CDATA[<p>Thanks Januz. </p><p>I have standardised the method of generation of [both <strong><span class="bbu">main</span> and <span class="bbu">install</span> empty.po</strong> files with:</p><div class="codebox"><pre><code>#!/bin/bash

mkdir -p /tmp/fagettext
cd /tmp/fagettext

FAVERSION=&quot;2.3.14&quot;
FRONTACFILE=frontaccounting-$FAVERSION.tar.gz

wget https:/sourceforge.net/projects/frontaccounting/files/FrontAccounting-2.3/$FAVERSION/$FRONTACFILE
tar -xzf $FRONTACFILE
rm -f $FRONTACFILE

MAINDIR=`pwd`/frontaccounting

cd $MAINDIR

# Generate the main empty.po file

TPL=lang/new_language_template/LC_MESSAGES/empty
GTEXEC=&quot;xgettext  -d empty --language=PHP  --from-code=ISO-8859-1 \
                  -p $MAINDIR/lang/new_language_template/LC_MESSAGES &quot;

# Backup the old main empty.po
mv $MAINDIR/$TPL.po $MAINDIR/$TPL.po.org

# Generate main header as well
$GTEXEC -k_ -n *.php

# set the charset
sed -i &#039;s/charset=CHARSET/charset=ISO-8859-1/g&#039; $MAINDIR/$TPL.po


mv install ..

$GTEXEC -k_ -n -j */*.php
$GTEXEC -k_ -n -j */*/*.php
$GTEXEC -k_ -n -j */*/*/*.php
$GTEXEC -k_ -n -j */*.inc
$GTEXEC -k_ -n -j */*/*.inc
$GTEXEC -k_ -n -j */*/*/*.inc

mv ../install .

# Generate the install empty.po file

ITPL=install/lang/new_language_template/LC_MESSAGES/empty
GTEXEC=&quot;xgettext  -d empty --language=PHP  --from-code=ISO-8859-1 \
                  -p $MAINDIR/install/lang/new_language_template/LC_MESSAGES &quot;

# Backup the old install empty.po
mv $MAINDIR/$ITPL.po $MAINDIR/$ITPL.po.org

# Generate install header as well
$GTEXEC -k_ -n install/*.php

# set the charset
sed -i &#039;s/charset=CHARSET/charset=ISO-8859-1/g&#039; $MAINDIR/$ITPL.po

$GTEXEC -k_ -n -j install/*.inc
$GTEXEC -k_ -n -j includes/system_tests.inc
$GTEXEC -k_ -n -j includes/packages.inc

cd $MAINDIR
tar -czf ../../fac_empty_po.tar.gz $TPL.po $ITPL.po
cd ../..
rm -rf fagettext

echo &quot;fac_empty_po.tar.gz created&quot;</code></pre></div><p>Have <a href="https://frontaccounting.com/fawiki/index.php?n=Devel.UpdateEmptyPoFiles"><strong>Wiki</strong></a>ed it as well.</p><p>Attached are the empty.po files taken from the gettext of the FA v2.3.14 code.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-20T16:58:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14733#p14733</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Requisition Module Not Working]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14731#p14731" />
			<content type="html"><![CDATA[<p>This is just a couple of calls to xgettext/msgfmt. Something like:<br /></p><div class="codebox"><pre><code>#!/bin/bash
LANG=pl_PL
MAINVER=0

MAINDIR=`pwd`/..
LANGDIR=$MAINDIR/lang/$LANG/LC_MESSAGES
TPL=lang/new_language_template/LC_MESSAGES/empty
GTEXEC=&quot;xgettext  -d empty --language=PHP  --from-code=ISO-8859-1 -p $MAINDIR/lang/new_language_template/LC_MESSAGES &quot;
cp header.po $MAINDIR/$TPL.po

ROOTDIR=../../../..
cd $MAINDIR

$GTEXEC -k_ -n -j *.php
$GTEXEC -k_ -n -j includes/db/*.inc
$GTEXEC -k_ -n -j includes/*.*
$GTEXEC -k_ -n -j $ROOTDIR/themes/default/renderer.php</code></pre></div>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2012-12-20T10:58:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14731#p14731</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Requisition Module Not Working]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14726#p14726" />
			<content type="html"><![CDATA[<p>What is the script you use to get the gettext to do the job?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-19T20:34:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14726#p14726</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Requisition Module Not Working]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14720#p14720" />
			<content type="html"><![CDATA[<p>Thanks. The path will almost always differ from the real path. Those are only handy comments for translators, to recognise context of the translated text.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2012-12-19T19:41:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14720#p14720</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Requisition Module Not Working]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14715#p14715" />
			<content type="html"><![CDATA[<p>@Janusz</p><p>The empty.po (and other language files possibly) have your dev machine path set like<br /></p><div class="codebox"><pre><code>#: /home/janusz/FA/fa_stable/Repo/srcs/2.3/requisitions/_devel/../hooks.php:16 </code></pre></div><p>Very extensive work indeed. Congrats.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-19T18:34:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14715#p14715</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Requisition Module Not Working]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14707#p14707" />
			<content type="html"><![CDATA[<p>I have fixed a couple of issues in Requsitions module and the package in repository has been updated. Now all the functionality implemented by Dennis Gichangi should work right, also some small changes were made in the code which should result in a little better user experience.</p><p>Unfortunately there was also installation bug found in core FA, which results in non intialized database after installation. The bug was already fixed in Hg repository, but the new minor FA version is not planned until next year. Therefore to make use of the new module version&nbsp; you have to do following steps:<br />. make backup of your company database<br />. uninstall requisition module in Create/Install Extension page<br />. install it again from the repo (on the same page)<br />. read module description - you will find important warnings here<br />. open your company database in phpmyadmin and import /modules/requisitions/sql/update.sql file.</p><p>Now the requisition module should be usable. Keep in mind there is a little non-standard interface implemented by author.<br />Entering requisition is not complete until you select Details link, enter a couple of requisition lines and select Complete link finally.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2012-12-19T15:17:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14707#p14707</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Requisition Module Not Working]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14614#p14614" />
			<content type="html"><![CDATA[<p>The original FA requisitions-2.3.3-7.pkg is at:<br />http://anonymous:password@repo.frontaccounting.eu/2.3/extensions/requisitions-2.3.3-7.pkg</p><p>Made corrections (as detailed in the <a href="https://frontaccounting.com/punbb/viewtopic.php?id=1948">forum post</a>) to the extension and bundled it as a normal tar file - just add the modified debian sauce and place it for download at the repo.frontaccounting.eu site. </p><p>The corrections are in the <strong>hooks.php</strong>, <strong>sql/update.sql</strong> and <strong>_init/config</strong> files.<br />It still cannot work properly - anyone got it to work? </p><p>What should the installed_extensions array be for such a module?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-13T10:08:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14614#p14614</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Requisition Module Not Working]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14604#p14604" />
			<content type="html"><![CDATA[<p>You will find it all in a folder called _cache in the modules folder.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-13T05:45:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14604#p14604</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Requisition Module Not Working]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14600#p14600" />
			<content type="html"><![CDATA[<p>I don&#039;t have a link to the tar.gz file.&nbsp; I installed the module by logging into FA, then going to the Setup tab and choosing Install/Activate Extensions.&nbsp; Is there some way to find this file?</p>]]></content>
			<author>
				<name><![CDATA[DotNM]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16764</uri>
			</author>
			<updated>2012-12-13T05:01:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14600#p14600</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Requisition Module Not Working]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14599#p14599" />
			<content type="html"><![CDATA[<p>Please send a link to the tar.gz file of the requisition module. I caould not find it on the FA site nor at <a href="https://frontaccounting.com/punbb/viewtopic.php?id=1948">this forum post</a></p><p>It appears that the module needs the two tables to be created first.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-13T04:59:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14599#p14599</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Requisition Module Not Working]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14571#p14571" />
			<content type="html"><![CDATA[<p>Hi all,</p><p>I&#039;m relatively new to FrontAccounting and am looking at it for accounting for a small non-profit organization I&#039;m involved with.&nbsp; I downloaded and installed it successfully.&nbsp; I also downloaded the Requisitions Module through the Install/Activate Extensions screen but it seems to not work.&nbsp; When I click on Requisition Entries, I get the following message:</p><p>DATABASE ERROR : could not get all requisitions<br />error code : 1146<br />error message : Table &#039;front.0_requisitions&#039; doesn&#039;t exist<br />sql that failed was : SELECT * FROM 0_requisitions WHERE (completed = 0) AND !inactive</p><p>Clicking Requisition Allocations gives this error:</p><p>DATABASE ERROR : could not get all requisition_details<br />error code : 1146<br />error message : Table &#039;front.0_requisition_details&#039; doesn&#039;t exist<br />sql that failed was : SELECT * FROM 0_item_codes ic INNER JOIN 0_requisition_details rd ON ic.item_code = rd.item_code INNER JOIN 0_requisitions r ON rd.requisition_id = r.requisition_id LEFT JOIN 0_suppliers s ON rd.supplier_id = s.supplier_id WHERE (r.completed = 1) AND (rd.lpo_id = 0) ORDER BY r.requisition_id</p><p>Does anyone know how to fix the error and get the Requisitions Module operational?</p><p>Thanks in advance!</p>]]></content>
			<author>
				<name><![CDATA[DotNM]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16764</uri>
			</author>
			<updated>2012-12-10T16:32:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14571#p14571</id>
		</entry>
</feed>
