<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Invalid Edit Session error and fix]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7212</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7212&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Invalid Edit Session error and fix.]]></description>
		<lastBuildDate>Wed, 16 Feb 2022 13:17:34 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Invalid Edit Session error and fix]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=40648#p40648</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (hassii)]]></author>
			<pubDate>Wed, 16 Feb 2022 13:17:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=40648#p40648</guid>
		</item>
		<item>
			<title><![CDATA[Re: Invalid Edit Session error and fix]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30237#p30237</link>
			<description><![CDATA[<p>@joe: Thanks for the <a href="https://github.com/FrontAccountingERP/FA/commit/93ce523d751fd5e943f1ce2257f5d7b20ee3d6c2">commit</a>.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 23 Dec 2017 13:46:48 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30237#p30237</guid>
		</item>
		<item>
			<title><![CDATA[Invalid Edit Session error and fix]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30187#p30187</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 22 Dec 2017 18:37:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30187#p30187</guid>
		</item>
	</channel>
</rss>
