<?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 selecting wrong customer branch when browser javascript is off]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=9102</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9102&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Error selecting wrong customer branch when browser javascript is off.]]></description>
		<lastBuildDate>Tue, 01 Dec 2020 11:22:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Error selecting wrong customer branch when browser javascript is off]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38693#p38693</link>
			<description><![CDATA[<p>The said branch_id is actually commented out, possibly a remnant of an old version.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 01 Dec 2020 11:22:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38693#p38693</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error selecting wrong customer branch when browser javascript is off]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38692#p38692</link>
			<description><![CDATA[<p>We have not experience such an error before. And never seen anything wrong in branch id mistakes.&nbsp; Probably it might cause if the database has issue with branch id</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Tue, 01 Dec 2020 01:37:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38692#p38692</guid>
		</item>
		<item>
			<title><![CDATA[Error selecting wrong customer branch when browser javascript is off]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38687#p38687</link>
			<description><![CDATA[<p>There maybe some reasons that cause user browser javascript turned of then branch and customer can be wrong selected then process wrong data to database.<br />This check need to be added to function can_process() in sales_order_entry.php, customer_payments.php, credit_note_entry.php<br /></p><div class="codebox"><pre><code>if(!branch_in_foreign_table(get_post(&#039;customer_id&#039;), get_post(&#039;branch_id&#039;), &#039;cust_branch&#039;)) {
        display_error(_(&quot;The selected branch is not a branch of the selected customer.&quot;));
        set_focus(&#039;branch_id&#039;);
        return false;
    }</code></pre></div><p>Note: in customer_payments.php &#039;branch_id&#039; should be &#039;BranchID&#039;</p><p>This error does not usually occurs but it would be critical when it does.</p>]]></description>
			<author><![CDATA[null@example.com (notrinos)]]></author>
			<pubDate>Mon, 30 Nov 2020 14:31:17 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38687#p38687</guid>
		</item>
	</channel>
</rss>
