<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Invalid Edit Session error and fix]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7212&amp;type=atom" />
	<updated>2022-02-16T13:17:34Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7212</id>
		<entry>
			<title type="html"><![CDATA[Re: Invalid Edit Session error and fix]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40648#p40648" />
			<content type="html"><![CDATA[<p>What will happen if i commented this line in <strong>sales/customer_delivery.php</strong> -&gt; <br /></p><div class="codebox"><pre><code>check_edit_conflicts(get_post(&#039;cart_id&#039;));
 else {
    // check_edit_conflicts(get_post(&#039;cart_id&#039;)); //------------------------------------------
    if (!check_quantities()) {
        display_error(_(&quot;Selected quantity cannot be less than quantity invoiced nor more than quantity    not dispatched on sales order.&quot;));
    } elseif(!check_num(&#039;ChargeFreightCost&#039;, 0)) {
        display_error(_(&quot;Freight cost cannot be less than zero&quot;));
        set_focus(&#039;ChargeFreightCost&#039;);
    }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[hassii]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46263</uri>
			</author>
			<updated>2022-02-16T13:17:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40648#p40648</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Invalid Edit Session error and fix]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30237#p30237" />
			<content type="html"><![CDATA[<p>@joe: Thanks for the <a href="https://github.com/FrontAccountingERP/FA/commit/93ce523d751fd5e943f1ce2257f5d7b20ee3d6c2">commit</a>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-12-23T13:46:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30237#p30237</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Invalid Edit Session error and fix]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30187#p30187" />
			<content type="html"><![CDATA[<p>When we first login to FA, there is no <strong>$_SESSION[$cartname]</strong> available.</p><p>When we then choose <strong>Sales =&gt; Direct Sales Invoice</strong> and then we <em>change the payment terms</em> first we get the error:<br /><strong>This edit session has been abandoned by opening sales document in another browser tab. You cannot edit more than one sales document at once.</strong></p><p>The fix is to change line 49 in <strong>sales/includes/sales_ui.inc</strong>:<br /></p><div class="codebox"><pre><code>    if ((!isset($SysPrefs-&gt;no_check_edit_conflicts) || $SysPrefs-&gt;no_check_edit_conflicts==0) &amp;&amp; $cart_id &amp;&amp; $cart_id != $_SESSION[$cartname]-&gt;cart_id) {</code></pre></div><p>to<br /></p><div class="codebox"><pre><code>    if ((!isset($SysPrefs-&gt;no_check_edit_conflicts) || $SysPrefs-&gt;no_check_edit_conflicts==0) &amp;&amp; $cart_id &amp;&amp; isset($_SESSION[$cartname]) &amp;&amp; $cart_id != $_SESSION[$cartname]-&gt;cart_id) {</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-12-22T18:37:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30187#p30187</id>
		</entry>
</feed>
