<?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 Report GL Trans (show warning sign)]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=9411</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9411&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in ERROR Report GL Trans (show warning sign).]]></description>
		<lastBuildDate>Tue, 24 Aug 2021 17:40:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39939#p39939</link>
			<description><![CDATA[<p>Thank you notrinos. The results seems to be similar, but in fact problem can also depend on specific database content/structure as kvvaradha suggested.</p><p>@kvvaradha</p><p>Could you check the change proposed above with the same database you had timeouts before?</p><p>J.</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Tue, 24 Aug 2021 17:40:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39939#p39939</guid>
		</item>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39928#p39928</link>
			<description><![CDATA[<p>@notrinos, I guess there Is not much difference,&nbsp; guess your tables are not contains utf data. Try with utf data and name the customers and branches almost the size of name max characters and try. You will get this situation. But I would suggest most of the php servers set 30 seconds as their max execution time and some of users using shared hosting. Their server performance not same always. Vps&nbsp; and dedicated servers and local pc are different then shared hosting.</p><p>Hope you guys understand the point. 10 seconds is very less time.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sat, 21 Aug 2021 08:55:17 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39928#p39928</guid>
		</item>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39927#p39927</link>
			<description><![CDATA[<p>@itronics<br />I have tested in both apache and nginx server with the same database which has 73666 transactions and here is the result:</p><p>Nginx:<br /> - Old query took 1.1133 seconds<br /> - New query took 1.1142 seconds</p><p>Apache:<br /> - Old query took 1.8560 seconds<br /> - New query took 1.8940 seconds</p><p>The perfomance difference is not noticeable.</p><p>Note: The apache is installed on a localhost of a windows 10 machine, the nginx server is on a centos7 server machine</p>]]></description>
			<author><![CDATA[null@example.com (notrinos)]]></author>
			<pubDate>Sat, 21 Aug 2021 08:00:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39927#p39927</guid>
		</item>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39912#p39912</link>
			<description><![CDATA[<p>So I guess problem appears just for huge customer table.</p><p>@kvaradha, notrinos<br />Please test slightly changed inquiry helper, I hope this form will behave better:</p><div class="quotebox"><blockquote><p>//----------------------------------------------------------------------------------------<br />function get_sql_for_customer_inquiry($from, $to, $cust_id = ALL_TEXT, $filter = ALL_TEXT, $show_voided = 0)<br />{<br />&nbsp; &nbsp; $date_after = date2sql($from);<br />&nbsp; &nbsp; $date_to = date2sql($to);</p><p>&nbsp; &nbsp; &nbsp; $sql = &quot;SELECT <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trans.type, <br />&nbsp; &nbsp; &nbsp; &nbsp; trans.trans_no, <br />&nbsp; &nbsp; &nbsp; &nbsp; trans.order_, <br />&nbsp; &nbsp; &nbsp; &nbsp; trans.reference,<br />&nbsp; &nbsp; &nbsp; &nbsp; trans.tran_date, <br />&nbsp; &nbsp; &nbsp; &nbsp; trans.due_date, <br />&nbsp; &nbsp; &nbsp; &nbsp; debtor.name, <br />&nbsp; &nbsp; &nbsp; &nbsp; branch.br_name,<br />&nbsp; &nbsp; &nbsp; &nbsp; debtor.curr_code,<br />&nbsp; &nbsp; &nbsp; &nbsp; IF(prep_amount, prep_amount, trans.ov_amount + trans.ov_gst + trans.ov_freight <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + trans.ov_freight_tax + trans.ov_discount)&nbsp; &nbsp; AS TotalAmount,&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; . &quot;IF(trans.type IN(&quot;.implode(&#039;,&#039;,&nbsp; array(ST_CUSTCREDIT,ST_CUSTPAYMENT,ST_BANKDEPOSIT)).&quot;), -1, 1)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *(IF(prep_amount, prep_amount, trans.ov_amount + trans.ov_gst + trans.ov_freight <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + trans.ov_freight_tax + trans.ov_discount)-trans.alloc) Balance, <br />&nbsp; &nbsp; &nbsp; &nbsp; debtor.debtor_no,&quot;;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; $sql .= &quot;trans.alloc AS Allocated,<br />&nbsp; &nbsp; &nbsp; &nbsp; ((trans.type = &quot;.ST_SALESINVOICE.&quot; || trans.type = &quot;.ST_JOURNAL.&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND trans.due_date &lt; &#039;&quot; . date2sql(Today()) . &quot;&#039;) AS OverDue ,<br />&nbsp; &nbsp; &nbsp; &nbsp; Sum(line.quantity-line.qty_done) AS Outstanding,<br />&nbsp; &nbsp; &nbsp; &nbsp; Sum(line.qty_done) AS HasChild,<br />&nbsp; &nbsp; &nbsp; &nbsp; prep_amount<br />&nbsp; &nbsp; &nbsp; &nbsp; FROM &quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .TB_PREF.&quot;debtor_trans as trans<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN &quot;.TB_PREF.&quot;debtor_trans_details as line<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ON trans.trans_no=line.debtor_trans_no AND trans.type=line.debtor_trans_type<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN &quot;.TB_PREF.&quot;voided as v<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ON trans.trans_no=v.id AND trans.type=v.type<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN &quot;.TB_PREF.&quot;audit_trail as audit ON (trans.type=audit.type AND trans.trans_no=audit.trans_no)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN &quot;.TB_PREF.&quot;users as user ON (audit.user=user.id)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN &quot;.TB_PREF.&quot;cust_branch as branch ON trans.branch_code=branch.branch_code<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN &quot;.TB_PREF.&quot;debtors_master as debtor ON debtor.debtor_no = trans.debtor_no&quot; // exclude voided transactions and self-balancing (journal) transactions:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .&quot; WHERE&quot;;</p><p>&nbsp; &nbsp; if ($filter == &#039;2&#039;)<br />&nbsp; &nbsp; &nbsp; &nbsp; $sql .= &quot; ABS(IF(prep_amount, prep_amount, trans.ov_amount + trans.ov_gst + trans.ov_freight + trans.ov_freight_tax + trans.ov_discount)-trans.alloc)&gt;&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .FLOAT_COMP_DELTA;<br />&nbsp; &nbsp; else {<br />&nbsp; &nbsp; &nbsp; &nbsp; $sql .= &quot; trans.tran_date &gt;= &#039;$date_after&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND trans.tran_date &lt;= &#039;$date_to&#039;&quot;;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; if (!$show_voided)&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$sql .= &quot; AND ISNULL(v.date_) AND (trans.ov_amount + trans.ov_gst + trans.ov_freight + trans.ov_freight_tax + trans.ov_discount) != 0&quot;;</p><br /><p>&nbsp; &nbsp; &nbsp; &nbsp;if ($cust_id != ALL_TEXT)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$sql .= &quot; AND trans.debtor_no = &quot;.db_escape($cust_id);</p><p>&nbsp; &nbsp; &nbsp; &nbsp;if ($filter != ALL_TEXT)<br />&nbsp; &nbsp; &nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ($filter == &#039;1&#039;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$sql .= &quot; AND (trans.type = &quot;.ST_SALESINVOICE.&quot;) &quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;elseif ($filter == &#039;2&#039;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$sql .= &quot; AND (trans.type &lt;&gt; &quot;.ST_CUSTDELIVERY.&quot;) &quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;elseif ($filter == &#039;3&#039;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sql .= &quot; AND (trans.type = &quot; . ST_CUSTPAYMENT <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .&quot; OR trans.type = &quot;.ST_BANKDEPOSIT.&quot; OR trans.type = &quot;.ST_BANKPAYMENT.&quot;) &quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;elseif ($filter == &#039;4&#039;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sql .= &quot; AND trans.type = &quot;.ST_CUSTCREDIT.&quot; &quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;elseif ($filter == &#039;5&#039;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sql .= &quot; AND trans.type = &quot;.ST_CUSTDELIVERY.&quot; &quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</p><p>&nbsp; &nbsp; &nbsp; &nbsp; if ($filter == &#039;2&#039;)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $today =&nbsp; date2sql(Today());<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sql .= &quot; AND trans.due_date &lt; &#039;$today&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND (trans.ov_amount + trans.ov_gst + trans.ov_freight_tax + <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trans.ov_freight + trans.ov_discount - trans.alloc &gt; 0) &quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp;}</p><p>&nbsp; &nbsp; $sql .= &quot; GROUP BY trans.trans_no, trans.type&quot;;</p><p>&nbsp; &nbsp; &nbsp; &nbsp;return $sql;<br />}</p></blockquote></div><p>Here cross product of debtor_trans and debtor_master is superseded by LEFT JOIN which should reduce processing time.<br />J.</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Fri, 20 Aug 2021 17:23:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39912#p39912</guid>
		</item>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39900#p39900</link>
			<description><![CDATA[<p>Agreed @itronics<br />I have tested on a database with 73000 customer transactions and Customer Transactions page can give result in less than 3 seconds</p>]]></description>
			<author><![CDATA[null@example.com (notrinos)]]></author>
			<pubDate>Thu, 19 Aug 2021 09:45:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39900#p39900</guid>
		</item>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39898#p39898</link>
			<description><![CDATA[<p>Seems the query used here is suboptimal. Really 10 seconds should be enough to retrieve 10 records from database.<br />Unfortunately I don&#039;t have such big databse to test, but you can experiment with query form in get_sql_for_customer_inquiry().</p><p>J.</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 19 Aug 2021 08:41:05 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39898#p39898</guid>
		</item>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39897#p39897</link>
			<description><![CDATA[<p>It happens with a customer transaction inquiry page itself with 10 records show. But the table has more than 50k customers in it.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Thu, 19 Aug 2021 07:48:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39897#p39897</guid>
		</item>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39896#p39896</link>
			<description><![CDATA[<p>Inquires use paged transaction lookup ie only limited number of records is retrieved at once,&nbsp; so this issue should not appear here. Unless you will set 10000 records per page to be displayed :-).<br />J.</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 19 Aug 2021 06:06:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39896#p39896</guid>
		</item>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39879#p39879</link>
			<description><![CDATA[<div class="quotebox"><cite>itronics wrote:</cite><blockquote><p>I think better solution is change in line 103 of reporting/includes/reports_classes.inc (fifth argument of submit() call).<br />When you change &#039;default popup&#039; string here to &#039;default progress popup&#039; effective report engine timeout should change to max. 10 minutes (this is visualised by progressbar icon instead of swirl).<br />Could you please test if this fix works for you without any side effects?</p><p>Janusz</p></blockquote></div><p>Looks you have considered only to the reports. How about inquiry pages which has to query in huge records and if the FA&nbsp; is hosted on shared hosting.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Tue, 17 Aug 2021 06:15:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39879#p39879</guid>
		</item>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39878#p39878</link>
			<description><![CDATA[<p>@itronics proposal has been committed to stable repo.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 16 Aug 2021 20:49:28 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39878#p39878</guid>
		</item>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39864#p39864</link>
			<description><![CDATA[<p>I think better solution is change in line 103 of reporting/includes/reports_classes.inc (fifth argument of submit() call).<br />When you change &#039;default popup&#039; string here to &#039;default progress popup&#039; effective report engine timeout should change to max. 10 minutes (this is visualised by progressbar icon instead of swirl).<br />Could you please test if this fix works for you without any side effects?</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Sat, 14 Aug 2021 18:42:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39864#p39864</guid>
		</item>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39838#p39838</link>
			<description><![CDATA[<p>Lines 38 and 40 in <strong>js/utils.js</strong> need this change.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 11 Aug 2021 16:09:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39838#p39838</guid>
		</item>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39835#p39835</link>
			<description><![CDATA[<p>Yes, why not. Let me discuss this with @itroniics.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 11 Aug 2021 15:47:42 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39835#p39835</guid>
		</item>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39834#p39834</link>
			<description><![CDATA[<p>@joe, most of the php config set for 30 seconds&nbsp; why do we have 10 seconds.&nbsp; Can we set it for 30 seconds as basic one..?</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Wed, 11 Aug 2021 15:28:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39834#p39834</guid>
		</item>
		<item>
			<title><![CDATA[Re: ERROR Report GL Trans (show warning sign)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=39833#p39833</link>
			<description><![CDATA[<p>thanks for replying, problem solved.</p>]]></description>
			<author><![CDATA[null@example.com (ardyan)]]></author>
			<pubDate>Wed, 11 Aug 2021 09:34:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=39833#p39833</guid>
		</item>
	</channel>
</rss>
