<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Version 2.4.7: Purchases - Direct Supplier Invoice not processing]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8258</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8258&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Version 2.4.7: Purchases - Direct Supplier Invoice not processing.]]></description>
		<lastBuildDate>Wed, 10 Jul 2019 10:37:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Version 2.4.7: Purchases - Direct Supplier Invoice not processing]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35427#p35427</link>
			<description><![CDATA[<p>@poncho1234 - Thank you for all your efforts Sir :-) </p><p>I increased the 50 to 80 in the tables and that has fixed it, probably the simplest way however I have no idea if this was a bad idea especially later on down the line.</p><p>I looked around the SQL tables and find CHAR(200) all over, I assume the CHAR(50) could be in error? if not, then I would assume it is 50 for a some reason? </p><p>Anyway, for now it seems to all be working.</p><p>Kind Regards,<br />Steven Brewer</p>]]></description>
			<author><![CDATA[null@example.com (ZS6SHB)]]></author>
			<pubDate>Wed, 10 Jul 2019 10:37:36 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35427#p35427</guid>
		</item>
		<item>
			<title><![CDATA[Re: Version 2.4.7: Purchases - Direct Supplier Invoice not processing]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35419#p35419</link>
			<description><![CDATA[<p>@apmuthu, @ joe</p><p>Based on:- This has been a problem for quite a while</p><p>You could assume that:-<br />Not many users have item desc &gt;50 for purchasing. Those that do have not reported the issue, therefore there is a high likelihood that the purchase order is for internal use only.<br />So continuing to truncate the supplier_description in the purch_data table would still allow STRICT_ALL_TABLES to be used and most users would see no difference anyway. AND this is no different to what has been happening up to V2.4.6 so far.</p><p>So:-<br /></p><div class="codebox"><pre><code>File: \inventory\includes\db\items_purchases_db.inc
21:         .db_escape($supplier_description) . &quot;)&quot;;

And

File: \inventory\includes\db\items_purchases_db.inc
32:         supplier_description=&quot; . db_escape($supplier_description) . &quot;</code></pre></div><p>Could be changed to something like <strong>(Not tested)</strong>:-<br /></p><div class="codebox"><pre><code>File: \inventory\includes\db\items_purchases_db.inc
21:         .db_escape(substr($supplier_description, 0, 50)) . &quot;)&quot;;

And

File: \inventory\includes\db\items_purchases_db.inc
32:         supplier_description=&quot; . db_escape(substr($supplier_description, 0, 50)) . &quot;</code></pre></div><p>Also two changes to function add_or_update_purchase_data in File: \purchasing\includes\purchasing_db.inc Lines 103 &amp; 112</p><p>As stated code not tested, so please check.<br />It&#039;s certainly not the correct solution, but does delay db changes to V2.5</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Tue, 09 Jul 2019 18:50:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35419#p35419</guid>
		</item>
		<item>
			<title><![CDATA[Re: Version 2.4.7: Purchases - Direct Supplier Invoice not processing]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35396#p35396</link>
			<description><![CDATA[<p>Hello :-) </p><p>Thank you so much for your input.</p><p>What I did was to increase the char(50) to char(80) which covers the description characters for all items.</p><p>I installed a fresh copy of FA and had a look at the tables, they are char(50), making them char(80) fixed it.</p><p>I hope this wont cause any issues?</p>]]></description>
			<author><![CDATA[null@example.com (ZS6SHB)]]></author>
			<pubDate>Sat, 06 Jul 2019 17:45:48 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35396#p35396</guid>
		</item>
		<item>
			<title><![CDATA[Re: Version 2.4.7: Purchases - Direct Supplier Invoice not processing]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35395#p35395</link>
			<description><![CDATA[<p>@apmuthu and existing items? </p><p><s>Is an &#039;ALTER TABLE&#039; really a db change as such? - it shouldn&#039;t affect existing data?</s></p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sat, 06 Jul 2019 15:07:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35395#p35395</guid>
		</item>
		<item>
			<title><![CDATA[Re: Version 2.4.7: Purchases - Direct Supplier Invoice not processing]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35394#p35394</link>
			<description><![CDATA[<p>@joe: Can we not make the field take no more than the field size in the table definition?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 06 Jul 2019 15:03:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35394#p35394</guid>
		</item>
		<item>
			<title><![CDATA[Re: Version 2.4.7: Purchases - Direct Supplier Invoice not processing]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35393#p35393</link>
			<description><![CDATA[<p>@ZS6SHB How many characters did the item desc have for the failed purchase orders?</p><p>Turn on debug(level2) in config.php and report errors found</p><p>Same issue here, <strong>only happens where item desc is longer than 50 characters</strong> - see screenshot below: reported in <a href="http://mantis.frontaccounting.com/view.php?id=4931">mantis</a></p><p>Is this the&nbsp; result of changing to STRICT_ALL_TABLES:-<br />File connect_db_mysql.inc &amp; connect_db_mysqli.inc<br />Line 13<br /></p><div class="codebox"><pre><code>define(&#039;SQL_MODE&#039;, &#039;STRICT_ALL_TABLES&#039;); // prevents SQL injection with silent field content truncation</code></pre></div><p>Before:- although supplier description was var(50) it used to truncate longer item desc. <br />Now as is strict it rejects it</p><p>The solution is to change table purch_data `supplier_description` to tinytext, but you have a db change ban until 2.5?</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sat, 06 Jul 2019 14:45:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35393#p35393</guid>
		</item>
		<item>
			<title><![CDATA[Version 2.4.7: Purchases - Direct Supplier Invoice not processing]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35390#p35390</link>
			<description><![CDATA[<p>Version 2.4.7: Purchases - Direct Supplier Invoice, after filling out the form and clicking &quot;Process Tax Invoice&quot; nothing happens, after clicking &quot;Process Tax Invoice&quot; again it looks like it processes, however instead of saying &quot;Direct Purchase Tax Invoice has been entered&quot; on the next screen, it says &quot;Purchase Order has been updated&quot;. The transaction is never actually processed. I backed up the SQL right there and restored it into 2.4.6 and it then works fine. This does not affect all product items, some of them process fine and some have this issue, in 2.4.6 all of them process fine.</p>]]></description>
			<author><![CDATA[null@example.com (ZS6SHB)]]></author>
			<pubDate>Sat, 06 Jul 2019 13:19:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35390#p35390</guid>
		</item>
	</channel>
</rss>
