<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Requisition Module Not Working]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3634</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3634&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Requisition Module Not Working.]]></description>
		<lastBuildDate>Thu, 17 Jan 2013 08:46:09 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Requisition Module Not Working]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15096#p15096</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (doitashimashite)]]></author>
			<pubDate>Thu, 17 Jan 2013 08:46:09 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15096#p15096</guid>
		</item>
		<item>
			<title><![CDATA[Re: Requisition Module Not Working]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14733#p14733</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 20 Dec 2012 16:58:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14733#p14733</guid>
		</item>
		<item>
			<title><![CDATA[Re: Requisition Module Not Working]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14731#p14731</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 20 Dec 2012 10:58:19 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14731#p14731</guid>
		</item>
		<item>
			<title><![CDATA[Re: Requisition Module Not Working]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14726#p14726</link>
			<description><![CDATA[<p>What is the script you use to get the gettext to do the job?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 19 Dec 2012 20:34:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14726#p14726</guid>
		</item>
		<item>
			<title><![CDATA[Re: Requisition Module Not Working]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14720#p14720</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Wed, 19 Dec 2012 19:41:37 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14720#p14720</guid>
		</item>
		<item>
			<title><![CDATA[Re: Requisition Module Not Working]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14715#p14715</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 19 Dec 2012 18:34:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14715#p14715</guid>
		</item>
		<item>
			<title><![CDATA[Re: Requisition Module Not Working]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14707#p14707</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Wed, 19 Dec 2012 15:17:09 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14707#p14707</guid>
		</item>
		<item>
			<title><![CDATA[Re: Requisition Module Not Working]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14614#p14614</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 13 Dec 2012 10:08:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14614#p14614</guid>
		</item>
		<item>
			<title><![CDATA[Re: Requisition Module Not Working]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14604#p14604</link>
			<description><![CDATA[<p>You will find it all in a folder called _cache in the modules folder.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 13 Dec 2012 05:45:30 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14604#p14604</guid>
		</item>
		<item>
			<title><![CDATA[Re: Requisition Module Not Working]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14600#p14600</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (DotNM)]]></author>
			<pubDate>Thu, 13 Dec 2012 05:01:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14600#p14600</guid>
		</item>
		<item>
			<title><![CDATA[Re: Requisition Module Not Working]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14599#p14599</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 13 Dec 2012 04:59:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14599#p14599</guid>
		</item>
		<item>
			<title><![CDATA[Requisition Module Not Working]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14571#p14571</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (DotNM)]]></author>
			<pubDate>Mon, 10 Dec 2012 16:32:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14571#p14571</guid>
		</item>
	</channel>
</rss>
