<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — supplier payment]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=4539</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4539&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in supplier payment.]]></description>
		<lastBuildDate>Thu, 21 Nov 2013 18:04:29 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: supplier payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18509#p18509</link>
			<description><![CDATA[<p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (dvarsani)]]></author>
			<pubDate>Thu, 21 Nov 2013 18:04:29 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18509#p18509</guid>
		</item>
		<item>
			<title><![CDATA[Re: supplier payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18508#p18508</link>
			<description><![CDATA[<p>Yes it is fixed in the HG Repo and the consolidated list of files have been uploaded in the Release Posting.</p><p>https://frontaccounting.com/punbb/viewtopic.php?pid=18494#p18494</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 21 Nov 2013 18:03:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18508#p18508</guid>
		</item>
		<item>
			<title><![CDATA[Re: supplier payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18507#p18507</link>
			<description><![CDATA[<p>Hi</p><p>Thanks for looking at this issue. Is debugged version of file suppalloc_db.inc downloadable?</p>]]></description>
			<author><![CDATA[null@example.com (dvarsani)]]></author>
			<pubDate>Thu, 21 Nov 2013 17:58:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18507#p18507</guid>
		</item>
		<item>
			<title><![CDATA[Re: supplier payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18505#p18505</link>
			<description><![CDATA[<p>Function Lines 14 to 26 in <strong>purchasing/includes/db/suppalloc_db.inc</strong> are called in files <strong>includes/ui/allocation_cart.inc</strong> (lines 203-205) and <strong>purchasing/includes/db/invoice_db.inc</strong> (lines 357-358) and are:<br /></p><div class="codebox"><pre><code>function add_supp_allocation($amount, $trans_type_from, $trans_no_from,
    $trans_type_to, $trans_no_to, $date_)
{
    $date = date2sql($date_);
    $sql = &quot;INSERT INTO &quot;.TB_PREF.&quot;supp_allocations (
        amt, date_alloc,
        trans_type_from, trans_no_from, trans_no_to, trans_type_to)
        VALUES (&quot;.db_escape($amount).&quot;, &#039;$date&#039;, &quot;
        .db_escape($trans_type_from).&quot;, &quot;.db_escape($trans_no_from).&quot;, &quot;
        .db_escape($trans_no_to).&quot;, &quot;.db_escape($trans_type_to).&quot;)&quot;;

    db_query($sql, &quot;A supplier allocation could not be added to the database&quot;);
}</code></pre></div><p>Somewhere the date2sql() function seems to fail or the $date_ variable does not have any value and no default is available.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 21 Nov 2013 17:52:38 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18505#p18505</guid>
		</item>
		<item>
			<title><![CDATA[Re: supplier payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18484#p18484</link>
			<description><![CDATA[<p>Have tried using the same procedure on using version 2.3.18 and it works fine. the update in suppalloc_db.inc in version 2.3.19&nbsp; has some bug.</p>]]></description>
			<author><![CDATA[null@example.com (dvarsani)]]></author>
			<pubDate>Wed, 20 Nov 2013 12:33:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18484#p18484</guid>
		</item>
		<item>
			<title><![CDATA[supplier payment]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18483#p18483</link>
			<description><![CDATA[<p>I am getting this error when making supplier payment after upgrading from version 2.3.18 to 2.3.19. After coming out of the payment page I went to supplier transaction page and found that payment has actually been posted. I tried another payment on my test database and had the same error on the payment page but the payment went through.</p><p>DATABASE ERROR : <br />At file C:\Frontaccounting\purchasing\includes\db\suppalloc_db.inc:25:<br />A supplier allocation could not be added to the database<br />error code : 1292<br />error message : Incorrect date value: &#039;&#039; for column &#039;date_alloc&#039; at row 1<br />sql that failed was : INSERT INTO 0_supp_allocations ( amt, date_alloc, trans_type_from, trans_no_from, trans_no_to, trans_type_to) VALUES (&#039;100&#039;, &#039;&#039;, &#039;22&#039;, &#039;791&#039;, &#039;861&#039;, &#039;20&#039;)</p>]]></description>
			<author><![CDATA[null@example.com (dvarsani)]]></author>
			<pubDate>Wed, 20 Nov 2013 12:14:05 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18483#p18483</guid>
		</item>
	</channel>
</rss>
