<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Error selecting wrong customer branch when browser javascript is off]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9102&amp;type=atom" />
	<updated>2020-12-01T11:22:44Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9102</id>
		<entry>
			<title type="html"><![CDATA[Re: Error selecting wrong customer branch when browser javascript is off]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38693#p38693" />
			<content type="html"><![CDATA[<p>The said branch_id is actually commented out, possibly a remnant of an old version.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-12-01T11:22:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38693#p38693</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error selecting wrong customer branch when browser javascript is off]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38692#p38692" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2020-12-01T01:37:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38692#p38692</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Error selecting wrong customer branch when browser javascript is off]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38687#p38687" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2020-11-30T14:31:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38687#p38687</id>
		</entry>
</feed>
