<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Stock Check Sheet | Inventory Planning Reports has serious Bugs.]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8782&amp;type=atom" />
	<updated>2020-05-14T10:45:24Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8782</id>
		<entry>
			<title type="html"><![CDATA[Re: Stock Check Sheet | Inventory Planning Reports has serious Bugs.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37511#p37511" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kvvaradha wrote:</cite><blockquote><p>Brother. Again here. As we already spoken about it. We have large Amount of data. So it makes more queries again and again to get both reports results. And we have two options <br />1. Introduce a new table to record the available stock , ordered , waiting to process, and in manufacturing.&nbsp; It would need to change the program to run it every movement of inventory.<br />2. To make a cron job and prepare this report in server&#039;s free time like morning 2 am to 6 am.</p><br /><p>Or we can increase the server config and reduce unnecessary tables to give some extra cache to run</p></blockquote></div><p>Yes Brother. Agreed. Hope, Your idea will solve our problem now. We have to implement this concept and see the performance after implementation. <br />But What would be the permanent solutions to this issue?</p>]]></content>
			<author>
				<name><![CDATA[geesyscare]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42046</uri>
			</author>
			<updated>2020-05-14T10:45:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37511#p37511</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Stock Check Sheet | Inventory Planning Reports has serious Bugs.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37510#p37510" />
			<content type="html"><![CDATA[<p>Can we create a seperate table to record demand, Quantity on Hand and Supp. order with respect to stock id and location id?<br />I have just started using FA. But i am afraid about its scalability and data handling capabilities. <br />Please advice!</p>]]></content>
			<author>
				<name><![CDATA[geesyscare]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42046</uri>
			</author>
			<updated>2020-05-14T10:40:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37510#p37510</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Stock Check Sheet | Inventory Planning Reports has serious Bugs.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37509#p37509" />
			<content type="html"><![CDATA[<p>I understand this discussion.<br />The reason for implementing the routines with recursivity is that the assembled items can have a BOM with another assembled item and so on.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2020-05-14T10:24:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37509#p37509</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Stock Check Sheet | Inventory Planning Reports has serious Bugs.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37496#p37496" />
			<content type="html"><![CDATA[<p>The sql construct starting at line 107 refers to an alias: <strong>Demmand</strong>. Is it used and is the mis-spelling intended? The said column does not appear to be explicitly named anywhere in usage.</p><p>The only indexes worth creating are:<br /></p><div class="codebox"><pre><code>ALTER TABLE 0_sales_orders ADD INDEX FromStkLocIdx (from_stk_loc); 
ALTER TABLE 0_stock_master ADD INDEX MBFlagIdx (mb_flag); </code></pre></div><p>The <strong>function stock_demand_manufacture</strong> is recursive in nature to cycle through all BOMs that may have other BOMs as part of itself. Check that the BOMs do not have any parent entities as part of the downline.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-05-14T08:36:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37496#p37496</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Stock Check Sheet | Inventory Planning Reports has serious Bugs.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37452#p37452" />
			<content type="html"><![CDATA[<p>@apmuthu, the problem is on line 161 when the function &#039;get_demand_asm_qty&#039; is called. I verified this by commenting out the line and with approx 3.5k items in the inventory the report ran in less than 5 seconds, where as before uncommented it timed out.</p><p><strong>get_demand_asm_qty</strong> line 104 in <strong>includes/db/manufacturing_db.inc</strong> calls another <strong>function stock_demand_manufacture</strong> also in the same file (line 54) this from what I understand cycles for up to 10 reiterations per item</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2020-05-08T16:29:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37452#p37452</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Stock Check Sheet | Inventory Planning Reports has serious Bugs.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37449#p37449" />
			<content type="html"><![CDATA[<p>What is the size of your gzipped sql backup from FA?<br />Maybe it can be simulated in a quarantined cloud container and provide the reports and study the sqls that need to be optimised.</p><p>We need to first try it on say PHP 5.3.3 / MySQL 5.1 on a test Debian 6.0 container. This can be tedious and time consuming besides the discerned attention to technical detail. Is it worth it?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-05-08T14:07:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37449#p37449</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Stock Check Sheet | Inventory Planning Reports has serious Bugs.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37443#p37443" />
			<content type="html"><![CDATA[<p>@apmuthu sir,<br />We have tried to fix the issues as per your guidance. <br />There are number Queries got reduced a bit while running the report.<br />But We could not fix the issue as of now.&nbsp; We are not able generate these reports.</p>]]></content>
			<author>
				<name><![CDATA[geesyscare]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42046</uri>
			</author>
			<updated>2020-05-08T10:42:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37443#p37443</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Stock Check Sheet | Inventory Planning Reports has serious Bugs.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37432#p37432" />
			<content type="html"><![CDATA[<p><strong>rep302.php</strong> - Inventory Planning Report - Line 52<br /><strong>rep303.php</strong> - Stock Check Sheet - Line 164</p><p>The above reports have a <strong>function getTransactions()</strong> which uses <strong>item.description</strong> in the <em>GROUP BY</em> clause - this assumes that each <strong>item.stock_id</strong> can have different <strong>item.description</strong>(s) - may even try to remove the offending Line making sure it is unique or make an index for it with:<br /></p><div class="codebox"><pre><code>ALTER TABLE `1_stock_master` ADD INDEX `ItemDetailIdx` (`description`); </code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-05-07T02:45:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37432#p37432</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Stock Check Sheet | Inventory Planning Reports has serious Bugs.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37429#p37429" />
			<content type="html"><![CDATA[<p>Brother. Again here. As we already spoken about it. We have large Amount of data. So it makes more queries again and again to get both reports results. And we have two options <br />1. Introduce a new table to record the available stock , ordered , waiting to process, and in manufacturing.&nbsp; It would need to change the program to run it every movement of inventory.<br />2. To make a cron job and prepare this report in server&#039;s free time like morning 2 am to 6 am.</p><br /><p>Or we can increase the server config and reduce unnecessary tables to give some extra cache to run</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2020-05-06T18:23:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37429#p37429</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Stock Check Sheet | Inventory Planning Reports has serious Bugs.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37424#p37424" />
			<content type="html"><![CDATA[<p>Try to scale down to PHP 5.6 or lower and see if it helps.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-05-06T15:52:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37424#p37424</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Stock Check Sheet | Inventory Planning Reports has serious Bugs.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37417#p37417" />
			<content type="html"><![CDATA[<p>No, @apmuthu&#039;s post is not helping me to overcome this problem. we are using php 7.2, nginix 1.17. <br />Hope, This is severe bug in FA core.<br />For loop in the report is endless. it goes on checking all the years and all the transaction (including BoM) of each items.<br />Oh my god. Completely frustrated with inventory reports. <br />Hope, I have been taken guidance from @notrinos | @kvvaradha. <br />We are still finding possibilities to fix this bugs!<br />Kindly give me any other idea please!</p>]]></content>
			<author>
				<name><![CDATA[geesyscare]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42046</uri>
			</author>
			<updated>2020-05-05T17:52:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37417#p37417</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Stock Check Sheet | Inventory Planning Reports has serious Bugs.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37399#p37399" />
			<content type="html"><![CDATA[<p>Have a look at giving MySQL more resources - increase query memory, etc. Its not really on-topic here, but google will give you lots of help.<br />Just found a <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=25545#p25545"> a post by apmuthu</a> which deals with just this issue and there&#039;s a link to a page for tuning MySQL.<br />You may want to also google about the WAMP/MAMP/LAMP you are using.</p><p>Have a look at apmuthu&#039;s post, if still problems reply with version numbers of FA, PHP, MySQL and WAMP type and version</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2020-05-04T23:17:43Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37399#p37399</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Stock Check Sheet | Inventory Planning Reports has serious Bugs.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37391#p37391" />
			<content type="html"><![CDATA[<p>I am a small manufacturing firms has BoM loaded to all of its products. Where Inventory Planning Report are very critical in nature. <br />Company has over 6000 stock id and nearly 3000 Manufacturable stock ids. Whenever we tried to generate these two report, System gets hanged and Gatway Timeout is persisting.<br />Because Stock Check alone is executine over 3 Lakhs queries to bring the report to users. Sometime is very more as well.<br />Company has 4CPU System with 16GB RAM. But No use as of now. <br />Now Instruction to the company, &quot;DON&#039;T TOUCH INVENTORY REPORTS&quot;!!!<br />Could please suggest us any solutions for this issue?</p>]]></content>
			<author>
				<name><![CDATA[geesyscare]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42046</uri>
			</author>
			<updated>2020-05-04T20:06:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37391#p37391</id>
		</entry>
</feed>
