<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Can't Add Direct Invoice Item for some customers]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10497&amp;type=atom" />
	<updated>2024-05-14T10:09:50Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10497</id>
		<entry>
			<title type="html"><![CDATA[Re: Can't Add Direct Invoice Item for some customers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43093#p43093" />
			<content type="html"><![CDATA[<p>Any updates guys?</p>]]></content>
			<author>
				<name><![CDATA[DrCard]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45206</uri>
			</author>
			<updated>2024-05-14T10:09:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43093#p43093</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't Add Direct Invoice Item for some customers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43026#p43026" />
			<content type="html"><![CDATA[<p>this video in attachment demonstrate the issue and the temporary fix while using default theme without select2</p><p><a href="https://drive.google.com/file/d/1CnI9222q6ldAHRriMl7sUaXOWs2Pd9i6/view?usp=sharing">https://drive.google.com/file/d/1CnI922 … sp=sharing</a></p>]]></content>
			<author>
				<name><![CDATA[DrCard]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45206</uri>
			</author>
			<updated>2024-04-08T09:25:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43026#p43026</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't Add Direct Invoice Item for some customers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43023#p43023" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kvvaradha wrote:</cite><blockquote><p>It seems you are using the select2 feature in every drop down. It&#039;s not core of FA. You you might modified the version of it.</p><p>So when you choose certain customers. The drop down or the items list might be directly connected to the sales price. </p><p>Or there can be the custom query which is failed to get results..</p><p>Or if any drop down or the list might be oversized. And it fails to load.&nbsp; </p><p>Or may be timeout. Increase the time if it.</p><p>Looks like you are a developer to modify the theme..So&nbsp; check those perspective. </p><br /><p>Try something more on that to elaborate the error</p></blockquote></div><p>Theme seems to be unrelated I tried disabling and it doesn&#039;t solve the issue.</p><p>Temporary solution is to use customer not affected by this issue and then switch to effected one and then I&#039;m able to proceed.</p>]]></content>
			<author>
				<name><![CDATA[DrCard]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45206</uri>
			</author>
			<updated>2024-04-08T08:20:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43023#p43023</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't Add Direct Invoice Item for some customers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43022#p43022" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>Compare the DB structures of the good and erroneous instances.<br />Compare the file and folder permissions of the web facing files.<br />Try to make the <strong>unset</strong> command into two separate commands, one for each variable, preferably after checking if it exists.<br />Compare the php.ini files across both installations.</p><p>In the file <strong>sales/sales_order_entry.php</strong>, at line 603, the unset appears as:<br /></p><div class="codebox"><pre><code>    unset($_POST[&#039;_stock_id_edit&#039;], $_POST[&#039;stock_id&#039;]);</code></pre></div><p>Wonder what the subsequent <strong>page_modified()</strong> does after the above statement that causes the error.</p></blockquote></div><p>I tried separating unset without any success also when this issue happen page_modified() is not reached it stuck and unset and that&#039;s it.</p>]]></content>
			<author>
				<name><![CDATA[DrCard]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45206</uri>
			</author>
			<updated>2024-04-08T08:16:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43022#p43022</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't Add Direct Invoice Item for some customers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43020#p43020" />
			<content type="html"><![CDATA[<p>It seems you are using the select2 feature in every drop down. It&#039;s not core of FA. You might use a modified the version of it.</p><p>So when you choose certain customers. The drop down or the items list might be directly connected to the sales price. </p><p>Or there can be the custom query which is failed to get results..</p><p>Or if any drop down or the list might be oversized. And it fails to load.&nbsp; </p><p>Or may be timeout. Increase the time if it.</p><p>Looks like you are a developer to modify the theme. So&nbsp; check those perspectives. </p><br /><p>Try something more on that to elaborate the error</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2024-04-07T11:15:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43020#p43020</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't Add Direct Invoice Item for some customers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43019#p43019" />
			<content type="html"><![CDATA[<p>Compare the DB structures of the good and erroneous instances.<br />Compare the file and folder permissions of the web facing files.<br />Try to make the <strong>unset</strong> command into two separate commands, one for each variable, preferably after checking if it exists.<br />Compare the php.ini files across both installations.</p><p>In the file <strong>sales/sales_order_entry.php</strong>, at line 603, the unset appears as:<br /></p><div class="codebox"><pre><code>    unset($_POST[&#039;_stock_id_edit&#039;], $_POST[&#039;stock_id&#039;]);</code></pre></div><p>Wonder what the subsequent <strong>page_modified()</strong> does after the above statement that causes the error.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2024-04-07T09:00:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43019#p43019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't Add Direct Invoice Item for some customers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43018#p43018" />
			<content type="html"><![CDATA[<p>This image in the attachment</p>]]></content>
			<author>
				<name><![CDATA[DrCard]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45206</uri>
			</author>
			<updated>2024-04-07T07:31:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43018#p43018</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't Add Direct Invoice Item for some customers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43017#p43017" />
			<content type="html"><![CDATA[<p>Your URL is not reachable in India as the major ISP has blocked ibb.co hosted at 213.174.132.224</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2024-04-06T20:16:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43017#p43017</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Can't Add Direct Invoice Item for some customers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43016#p43016" />
			<content type="html"><![CDATA[<p>For some customers mostly but not always customers with many transactions I can&#039;t add new item to the direct invoice and receive only<br />warning triangle without response to the request and leave no logs or footprint in php logs or nginx or php-fpm</p><p><a href="https://ibb.co/6yS1FCr">https://i.ibb.co/vcWQknV/ibba.png</a></p><p>after debugging the issue seems to appear in the line containing</p><p>unset($_POST[&#039;_stock_id_edit&#039;], $_POST[&#039;stock_id&#039;]);</p><p>in the function handle_new_item() while the $_POST[&#039;_stock_id_edit&#039;], $_POST[&#039;stock_id&#039;] are defined and I could print them with<br />display_error and such and also this unset() call work on some customers and didn&#039;t work on others</p><p>I tried to change my php version from 8.2 to 7.4 and it worked for while but then it stopped and never worked even when I clear the cache</p><p>I&#039;m using nginx and php 8.2 in rocky linux 8</p><p>do anyone face same issue?</p>]]></content>
			<author>
				<name><![CDATA[DrCard]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45206</uri>
			</author>
			<updated>2024-04-06T13:36:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43016#p43016</id>
		</entry>
</feed>
