<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Recieving Payment]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=346</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=346&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Recieving Payment.]]></description>
		<lastBuildDate>Fri, 26 Sep 2008 04:52:49 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Recieving Payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1202#p1202</link>
			<description><![CDATA[<p>still testing, will post any errors i come accross</p>]]></description>
			<author><![CDATA[null@example.com (marvo)]]></author>
			<pubDate>Fri, 26 Sep 2008 04:52:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1202#p1202</guid>
		</item>
		<item>
			<title><![CDATA[Re: Recieving Payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1200#p1200</link>
			<description><![CDATA[<p>Yes, in Windows vista, you can set the sql-mode to an empty string in my.ini (inside the MySQL folder). The filename in Linux is my.cnf. Restart the MySQL server and you are done!<br />However, I have decided to change about 5 to 6 files for &#039;sloppy&#039; sql and thereby minimize the risk for running into this. I have been through all of FA and not found that many errors in the strict sql. I gues about 5 or 6 files. The biggest &#039;problem&#039; is the data that is already in the database.<br />So the best advice is to set the sql-mode in the my.xxx file to empty and go with that.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Thu, 25 Sep 2008 11:28:48 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1200#p1200</guid>
		</item>
		<item>
			<title><![CDATA[Re: Recieving Payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1196#p1196</link>
			<description><![CDATA[<p>The reason for these problems is not MySQL version but&nbsp; you have strict sql mode enabled. FA takes care over data integrity so strict mode should be off currently. See <a href="http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html">http://dev.mysql.com/doc/refman/5.0/en/ … -mode.html</a><br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 25 Sep 2008 08:15:37 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1196#p1196</guid>
		</item>
		<item>
			<title><![CDATA[Re: Recieving Payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1193#p1193</link>
			<description><![CDATA[<p>I&#039;ll faithfully do so. Thank you joe for your prompt responses. i&#039;ve just encountered an issue with the balance sheet. let me just try again before i post</p><p>the balance sheet is fine...</p>]]></description>
			<author><![CDATA[null@example.com (marvo)]]></author>
			<pubDate>Thu, 25 Sep 2008 07:50:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1193#p1193</guid>
		</item>
		<item>
			<title><![CDATA[Re: Recieving Payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1192#p1192</link>
			<description><![CDATA[<p>Hello marvo,<br />Seems like we have found the problem. Date values and non string values can not have empty strings.<br />I&#039;ll install the version 5.0.51 of MySQL and try to trap eventually more errors.<br />The repository will be updated when this has been done.<br />I see that you reported another error in a different thred.<br />Please, marvo, if you have the time. Help with further testing.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Thu, 25 Sep 2008 07:45:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1192#p1192</guid>
		</item>
		<item>
			<title><![CDATA[Re: Recieving Payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1189#p1189</link>
			<description><![CDATA[<p>seems to have worked but then there&#039;s another error,</p><p>DATABASE ERROR : The debtor transaction record could not be inserted<br />error code : 1366<br />error message : Incorrect integer value: &#039;&#039; for column &#039;ship_via&#039; at row 1<br />sql that failed was : INSERT INTO 0_debtor_trans ( trans_no, type, debtor_no, branch_code, tran_date, due_date, reference, tpe, order_, ov_amount, ov_discount, ov_gst, ov_freight, ov_freight_tax, rate, ship_via, alloc, trans_link ) VALUES (10, 12, &#039;8&#039;, &#039;10&#039;, &#039;2008/09/25&#039;, &#039;0000-00-00&#039;, &#039;9&#039;, &#039;0&#039;, 0, 6500000, &#039;0&#039;, 0, &#039;0&#039;, 0, 1, &#039;&#039;, 0, &#039;0&#039;)</p><p>corrected this by changing $ship_via=&quot;&quot; to $ship_via=0 on line 89</p>]]></description>
			<author><![CDATA[null@example.com (marvo)]]></author>
			<pubDate>Thu, 25 Sep 2008 07:11:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1189#p1189</guid>
		</item>
		<item>
			<title><![CDATA[Re: Recieving Payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1188#p1188</link>
			<description><![CDATA[<p>Please help us one step further. Instead of $SQLDueDate = date2sql($due_date);, please change into the following:</p><p>if ($duedate != &quot;0000-00-00&quot;)<br />&nbsp; &nbsp; $SQLDueDate = date2sql($due_date);<br />else<br />&nbsp; &nbsp; $SqlDueDate = $due_date;</p><p>so it looks something like this</p><div class="codebox"><pre><code>if ($due_date != &quot;0000-00-00&quot;)
    $SQLDueDate = date2sql($due_date);
else
    $SQLDueDate = $due_date;</code></pre></div><p>and see if this helps.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 24 Sep 2008 21:15:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1188#p1188</guid>
		</item>
		<item>
			<title><![CDATA[Re: Recieving Payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1185#p1185</link>
			<description><![CDATA[<p>no luck itronics, below&nbsp; is the error that i get.</p><p>DATABASE ERROR : The debtor transaction record could not be inserted<br />error code : 1292<br />error message : Incorrect date value: &#039;20//&#039; for column &#039;due_date&#039; at row 1<br />sql that failed was : INSERT INTO 0_debtor_trans ( trans_no, type, debtor_no, branch_code, tran_date, due_date, reference, tpe, order_, ov_amount, ov_discount, ov_gst, ov_freight, ov_freight_tax, rate, ship_via, alloc, trans_link ) VALUES (10, 12, &#039;6&#039;, &#039;9&#039;, &#039;2008/09/24&#039;, &#039;20//&#039;, &#039;9&#039;, &#039;0&#039;, 0, 6500000, &#039;0&#039;, 0, &#039;0&#039;, 0, 1, &#039;&#039;, 0, &#039;0&#039;)</p><br /><p>does this $SQLDueDate = date2sql($due_date); on line 89 affect the default value by setting it to&nbsp; &#039;20//&#039; and would commenting that line affect any other part of the application?</p>]]></description>
			<author><![CDATA[null@example.com (marvo)]]></author>
			<pubDate>Wed, 24 Sep 2008 19:30:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1185#p1185</guid>
		</item>
		<item>
			<title><![CDATA[Re: Recieving Payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1183#p1183</link>
			<description><![CDATA[<p>Seems this is issue of your version of Mysql, although on 5.0.32 all works fine.<br />Please check if parameter $due_date=&#039;0000-00-00&#039; will work. This is default empty value for data fields.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Wed, 24 Sep 2008 18:25:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1183#p1183</guid>
		</item>
		<item>
			<title><![CDATA[Re: Recieving Payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1180#p1180</link>
			<description><![CDATA[<p>Hi Joe, thanks for your quick response. i changed the value as advised but it dint work... :-/</p>]]></description>
			<author><![CDATA[null@example.com (marvo)]]></author>
			<pubDate>Wed, 24 Sep 2008 15:19:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1180#p1180</guid>
		</item>
		<item>
			<title><![CDATA[Re: Recieving Payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1179#p1179</link>
			<description><![CDATA[<p>Marvo, the payment uses the same table, and therefore is sending an empty value. Will you do me a favor, helping me test this? I think this might be a MySQL version specific issue. <br />In file /sales/includes/db/cust_trans_db.inc, line 79, in function write_customer_trans. The parameter $due_date=null. Will you change that to $due_date=&quot;&quot; (empty string) and save and see if this helps? It would be very appriciated if you will help us with this.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 24 Sep 2008 13:16:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1179#p1179</guid>
		</item>
		<item>
			<title><![CDATA[Recieving Payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1178#p1178</link>
			<description><![CDATA[<p>I&#039;m trying to receive payment from a customer but I&#039;m getting the error below.<br />DATABASE ERROR : The debtor transaction record could not be inserted<br />error code : 1292<br />error message : Incorrect date value: &#039;&#039; for column &#039;due_date&#039; at row 1<br />sql that failed was : INSERT INTO 0_debtor_trans ( trans_no, type, debtor_no, branch_code, tran_date, due_date, reference, tpe, order_, ov_amount, ov_discount, ov_gst, ov_freight, ov_freight_tax, rate, ship_via, alloc, trans_link ) VALUES (10, 12, &#039;8&#039;, &#039;10&#039;, &#039;2008/09/24&#039;, &#039;&#039;, &#039;9&#039;, &#039;0&#039;, 0, 6500000, &#039;0&#039;, 0, &#039;0&#039;, 0, 1, &#039;&#039;, 0, &#039;0&#039;)</p><p>What strikes me is that there&#039;s no due date in the payment form so I&#039;m wondering why it&#039;s asking me that question.</p><p>Im using PHP 5.2.6, MYSQL 5.0.51, Apache 2.0.63 on Windows Vista</p>]]></description>
			<author><![CDATA[null@example.com (marvo)]]></author>
			<pubDate>Wed, 24 Sep 2008 12:09:16 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1178#p1178</guid>
		</item>
	</channel>
</rss>
