<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Error on Client Payment]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9188&amp;type=atom" />
	<updated>2021-02-10T11:55:43Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9188</id>
		<entry>
			<title type="html"><![CDATA[Re: Error on Client Payment]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39118#p39118" />
			<content type="html"><![CDATA[<p>I see it was solve in the forum &quot;Bug in Customer Payments Recording&quot; where it is described this solution:</p><p>I found the solution to this is to add 3rd argument in function call get_customer_trans() in /includes/ui/allocation_cart.inc as below on Line#399</p><p>$trans = get_customer_trans($_SESSION[&#039;alloc&#039;]-&gt;allocs[$counter]-&gt;type_no, $_SESSION[&#039;alloc&#039;]-&gt;allocs[$counter]-&gt;type, $_SESSION[&#039;alloc&#039;]-&gt;person_id);</p>]]></content>
			<author>
				<name><![CDATA[lugezz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42365</uri>
			</author>
			<updated>2021-02-10T11:55:43Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39118#p39118</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Error on Client Payment]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39117#p39117" />
			<content type="html"><![CDATA[<p>Hello everyone, I installed 2.4.9 this month and now I am having problems on Clients Payment. It seems the new check that From Accounting have in this version detect duplicated record. How can I solve this problem.</p><p>This is what the system report:</p><p>/var/www/numerillos.com.ar/sales/includes/db/cust_trans_db.inc:213:&nbsp; &nbsp; display_backtrace()<br />/var/www/numerillos.com.ar/includes/ui/allocation_cart.inc:399:&nbsp; &nbsp; get_customer_trans(&#039;762&#039;,&#039;0&#039;)<br />/var/www/numerillos.com.ar/sales/customer_payments.php:222:&nbsp; &nbsp; check_allocations()<br />/var/www/numerillos.com.ar/sales/customer_payments.php:236:&nbsp; &nbsp; can_process()<br />ERROR DE BASE DE DATOS : duplicate debtor transactions found for given params<br />sql that failed was : SELECT trans.*,ov_amount+ov_gst+ov_freight+ov_freight_tax+ov_discount AS Total,cust.name AS DebtorName, cust.address, cust.curr_code, cust.tax_id, trans.prep_amount&gt;0 as prepaid,com.memo_, branch.* FROM 0_debtor_trans trans LEFT JOIN 0_comments com ON trans.type=com.type AND trans.trans_no=com.id LEFT JOIN 0_shippers ON 0_shippers.shipper_id=trans.ship_via, 0_debtors_master cust, 0_cust_branch branch WHERE trans.trans_no=&#039;762&#039; AND trans.type=&#039;0&#039; AND trans.debtor_no=cust.debtor_no AND branch.branch_code = trans.branch_code</p>]]></content>
			<author>
				<name><![CDATA[lugezz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42365</uri>
			</author>
			<updated>2021-02-10T01:12:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39117#p39117</id>
		</entry>
</feed>
