<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Bug in Journal Inquiry View]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7061&amp;type=atom" />
	<updated>2017-10-31T06:11:12Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7061</id>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29341#p29341" />
			<content type="html"><![CDATA[<p>Consequent on <a href="https://github.com/FrontAccountingERP/FA/commit/5b41093323d7b0c106fa5fa1a4e0224f3b331f12">this commit</a>, all existing DBs may be updated with:<br /></p><div class="codebox"><pre><code>ALTER TABLE `0_debtor_trans`
    CHANGE `debtor_no` `debtor_no` INT(11) UNSIGNED NOT NULL, 
    DROP PRIMARY KEY, ADD PRIMARY KEY (`trans_no`, `type`, `debtor_no`);

ALTER TABLE `0_supp_trans`
    CHANGE `supplier_id` `supplier_id` INT(11) UNSIGNED NOT NULL, 
    DROP PRIMARY KEY, ADD PRIMARY KEY (`trans_no`, `type`, `supplier_id`); </code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-31T06:11:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29341#p29341</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29268#p29268" />
			<content type="html"><![CDATA[<p>Stands <a href="https://github.com/FrontAccountingERP/FA/commit/c428c827fef8156052be0e430be9af738536e3b0">corrected</a> now in the official repo.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-28T11:14:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29268#p29268</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29265#p29265" />
			<content type="html"><![CDATA[<p>Good catch @notrinos. This is what <a href="https://github.com/FrontAccountingERP/FA/commit/0fcc421f3bc76dbaf2331a11804d804b08f37545#commitcomment-25249073">happens</a> when a blind copy/paste occurs. My repo has the right code.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-28T05:36:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29265#p29265</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29264#p29264" />
			<content type="html"><![CDATA[<p>why both Sourceforge repo and GitHub update <strong>PRIMARY KEY (`type`,`trans_no`,`debtor_no`)</strong>&nbsp; for table <strong>supp_trans</strong> ?<br />It must be <strong>PRIMARY KEY(`type`,`trans_no`,`supplier_id`)</strong></p><p>am I wrong ?</p>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2017-10-28T05:32:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29264#p29264</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29262#p29262" />
			<content type="html"><![CDATA[<p>The official repo mirror on GitHub now stands <a href="https://github.com/FrontAccountingERP/FA/commit/0fcc421f3bc76dbaf2331a11804d804b08f37545">committed</a> for the <strong>supp_trans</strong> table fix as well.</p><p>All Chart maintainers are requested to submit suitable changes / devs may update the charts in the official pkg repo.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-28T04:43:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29262#p29262</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29259#p29259" />
			<content type="html"><![CDATA[<p>@dz: you have now added to the confusion.</p><p>Please be consistent with the order of the fields in the primary key as it should match the standard Charts and those that get upgraded using the <strong>sql/alter2.4.sql</strong> file.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-27T13:17:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29259#p29259</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29251#p29251" />
			<content type="html"><![CDATA[<p>Existing installs of FA 2.4 can also correct the <strong>supp_trans</strong> table also and retain the key field order too (as in the commit and in the <strong>sql/aletr2.4.sql</strong> with:<br /></p><div class="codebox"><pre><code>ALTER TABLE `0_debtor_trans`
   DROP PRIMARY KEY,
   ADD PRIMARY KEY(`type`,`trans_no`,`debtor_no`);

ALTER TABLE `0_supp_trans`
   DROP PRIMARY KEY,
   ADD PRIMARY KEY(`type`,`trans_no`,`supplier_id`);</code></pre></div><p>Actually, @itronics order of the key fields is better as it also is in the same order of fields in the table but the <strong>sql/alter2.4.sql</strong> and the commit are otherwise. The extension Charts too will have to be updated atleast for the <strong>supp_trans</strong> table.</p><p>The above stands fixed in <a href="https://github.com/apmuthu/frontac24/commit/433f6157a0d8915edb302b8dc14ae1c6b638c8f0">my repo</a>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-27T08:25:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29251#p29251</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29250#p29250" />
			<content type="html"><![CDATA[<p>Ironically all the extensions does not suffer this bug. This change was overlooked in the main code only.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2017-10-27T08:23:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29250#p29250</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29248#p29248" />
			<content type="html"><![CDATA[<p>This does not affect FA 2.3.x as the <strong>counterparty</strong> &quot;feature&quot; supporting code is present in FA 2.4.x only.</p><p>The <strong>sql/alter2.4.sql</strong> file is already updated in FA 2.4 for both <strong>debtor_trans</strong> and <strong>supp_trans</strong> tables.</p><p>All the extension Charts need to be updated.</p><p>The <strong>supp_trans</strong> table too needs to be updated accordingly with <strong>supplier_id</strong> in the place of <strong>debtor_no</strong>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-27T08:14:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29248#p29248</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29243#p29243" />
			<content type="html"><![CDATA[<p>We had small bug in database scheme, which I has <a href="https://sourceforge.net/p/frontaccounting/git/ci/5cd2769b439929e59a8a56da1f42ba5bdb582d09/">just fixed in initial sql files</a>. Impact of this big is moderate as such&nbsp; journal postings are made mainly during opening balance entry on fresh installations, so I think we do not have to implement any special measures to fix the problem in existing databases on next minor release.</p><p>Anyway, any existing FA database can be fixed easily with following command run in phpmyadmin:<br /></p><div class="codebox"><pre><code>ALTER TABLE `0_debtor_trans`
   DROP PRIMARY KEY,
   ADD PRIMARY KEY(`trans_no`,`type`,`debtor_no`);</code></pre></div><p>Thanks for pointing out the problem.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2017-10-27T07:27:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29243#p29243</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29238#p29238" />
			<content type="html"><![CDATA[<p>Janusz is investigating this.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-10-26T22:41:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29238#p29238</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29204#p29204" />
			<content type="html"><![CDATA[<p>@dz I am not getting any error if I select more than one customer/suppliers (each should be different) and it is reflecting in each parties ledger, balances, aging etc.</p><p>At some places the view is distorted just like in Journal Inquiry View but technically the transaction is OK.</p><p>You may call locally at my number to discuss further if you want that I am going to PM you.</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2017-10-25T16:12:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29204#p29204</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29194#p29194" />
			<content type="html"><![CDATA[<p>@dz are you using latest version of FA?</p><p>In FA2.4+ if you select Accounts REceiveable Code in Account Description in Journal Entry It creates another column automatically to enter CounterParty. This works same for Accounts Payable also.</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2017-10-25T08:13:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29194#p29194</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29170#p29170" />
			<content type="html"><![CDATA[<p>Hm.. will have a look later.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-10-23T20:57:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29170#p29170</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in Journal Inquiry View]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29161#p29161" />
			<content type="html"><![CDATA[<p>It happens only when counterparty is used and it multiplies the number of times the counterpaties are added to voucher.</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2017-10-23T07:33:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29161#p29161</id>
		</entry>
</feed>
