<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — supplier payment]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4539&amp;type=atom" />
	<updated>2013-11-21T18:04:29Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4539</id>
		<entry>
			<title type="html"><![CDATA[Re: supplier payment]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18509#p18509" />
			<content type="html"><![CDATA[<p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[dvarsani]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16332</uri>
			</author>
			<updated>2013-11-21T18:04:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18509#p18509</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: supplier payment]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18508#p18508" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-11-21T18:03:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18508#p18508</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: supplier payment]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18507#p18507" />
			<content type="html"><![CDATA[<p>Hi</p><p>Thanks for looking at this issue. Is debugged version of file suppalloc_db.inc downloadable?</p>]]></content>
			<author>
				<name><![CDATA[dvarsani]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16332</uri>
			</author>
			<updated>2013-11-21T17:58:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18507#p18507</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: supplier payment]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18505#p18505" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-11-21T17:52:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18505#p18505</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: supplier payment]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18484#p18484" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dvarsani]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16332</uri>
			</author>
			<updated>2013-11-20T12:33:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18484#p18484</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[supplier payment]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18483#p18483" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dvarsani]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16332</uri>
			</author>
			<updated>2013-11-20T12:14:05Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18483#p18483</id>
		</entry>
</feed>
