<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Error on update of supplier]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3712</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3712&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Error on update of supplier.]]></description>
		<lastBuildDate>Sat, 05 Jan 2013 04:56:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Error on update of supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14866#p14866</link>
			<description><![CDATA[<p>Thanks Joe,</p><p>The <a href="https://frontaccounting.hg.sourceforge.net/hgweb/frontaccounting/frontaccounting/rev/5e77d8f531c2">change set 3130</a> is reproduced here to help detect and fix similar errors:<br /></p><div class="codebox"><pre><code>--- old/purchasing/manage/suppliers.php    Thu Oct 04 13:09:47 2012
+++ new/purchasing/manage/suppliers.php    Sat Jan 05 10:17:23 2013
@@ -214,7 +214,7 @@
                 $_POST[&#039;website&#039;], $_POST[&#039;supp_account_no&#039;], $_POST[&#039;bank_account&#039;], 
                 input_num(&#039;credit_limit&#039;, 0), $_POST[&#039;dimension_id&#039;], $_POST[&#039;dimension2_id&#039;], $_POST[&#039;curr_code&#039;],
                 $_POST[&#039;payment_terms&#039;], $_POST[&#039;payable_account&#039;], $_POST[&#039;purchase_account&#039;], $_POST[&#039;payment_discount_account&#039;],
-                $_POST[&#039;notes&#039;], $_POST[&#039;tax_group_id&#039;], @$_POST[&#039;tax_included&#039;]);
+                $_POST[&#039;notes&#039;], $_POST[&#039;tax_group_id&#039;], get_post(&#039;tax_included&#039;, 0));
             update_record_status($_POST[&#039;supplier_id&#039;], $_POST[&#039;inactive&#039;],
                 &#039;suppliers&#039;, &#039;supplier_id&#039;);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 05 Jan 2013 04:56:37 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14866#p14866</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error on update of supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14852#p14852</link>
			<description><![CDATA[<p>Hi Joe</p><p>Update has fixed the bug.</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (dvarsani)]]></author>
			<pubDate>Thu, 03 Jan 2013 16:37:05 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14852#p14852</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error on update of supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14851#p14851</link>
			<description><![CDATA[<p>Thanks, please download the file suppliers.php1. Rename it to suppliers.php and replace the file in /purchasing/manage/suppliers.php.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Thu, 03 Jan 2013 15:00:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14851#p14851</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error on update of supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14850#p14850</link>
			<description><![CDATA[<p>I&#039;m using latest version 2.3.13 and Mysql version 5.5.28</p>]]></description>
			<author><![CDATA[null@example.com (dvarsani)]]></author>
			<pubDate>Thu, 03 Jan 2013 14:40:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14850#p14850</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error on update of supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14849#p14849</link>
			<description><![CDATA[<p>This was a strange behaviour. Have tried to reproduce, but the default field value of tax_included is 0.</p><p>Which version of FA are you using?</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Thu, 03 Jan 2013 13:53:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14849#p14849</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error on update of supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14848#p14848</link>
			<description><![CDATA[<p>Certain newer versions of MySql doesn&#039;t accept empty values for numeric values.</p><p>Will be fixed to next minor.</p><p>/joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Thu, 03 Jan 2013 12:05:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14848#p14848</guid>
		</item>
		<item>
			<title><![CDATA[Error on update of supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14847#p14847</link>
			<description><![CDATA[<p>Hi</p><p>I am getting this error when trying to update supplier.</p><p>DATABASE ERROR : The supplier could not be updated<br />error code : 1366<br />error message : Incorrect integer value: &#039;&#039; for column &#039;tax_included&#039; at row 1<br />sql that failed was : UPDATE suppliers SET supp_name=&#039;ADM Milling Ltd&#039;, supp_ref=&#039;ADM Milling&#039;, address=&#039;Kingsgate\n1, King Edward Road\nBrentwood, Essex\nCM14 4HG&#039;, supp_address=&#039;Kingsgate\n1, King Edward Road\nBrentwood, Essex\nCM14 4HG&#039;, gst_no=&#039;&#039;, website=&#039;&#039;, supp_account_no=&#039;&#039;, bank_account=&#039;&#039;, credit_limit=0, dimension_id=&#039;0&#039;, dimension2_id=&#039;0&#039;, curr_code=&#039;GBP&#039;, payment_terms=&#039;5&#039;, payable_account=&#039;13201&#039;, purchase_account=&#039;&#039;, payment_discount_account=&#039;20109&#039;, notes=&#039;&#039;, tax_group_id=&#039;1&#039;, tax_included=&#039;&#039; WHERE supplier_id = &#039;2&#039;</p>]]></description>
			<author><![CDATA[null@example.com (dvarsani)]]></author>
			<pubDate>Thu, 03 Jan 2013 09:32:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14847#p14847</guid>
		</item>
	</channel>
</rss>
