Topic: Inventory Planning Report

On the inventory planning report some stock items indicate that zero for the months 1,2,3,4 5 and 3*M and indicates 20 for QOH; 3 for CustOrd; 0 Supp Ord, 0 Sugg Ord.

There were however transactions for months 1,2,3,4,5 and there should be an amount for 3*m. Why would it not display these transactions on some stock items?

It makes it very difficult to plan stock this way. When the Inventory Item Movement report and inquiry is drawn, it indicates that there were movements for the specific stock item for the same periods.

Suggestions would be appreciated. Unfortunately I am not able to add attachments.

Regards

Wynand

Wynand

Re: Inventory Planning Report

Upload attachments somewhere and provide link here. Check MySQL / apache error logs for hints.

Re: Inventory Planning Report

Hi I have the same problem please.  The Inventory Sales Report does show all my sales.  But the Inventory Planning report shows only some of my sales.  Example.  Customer 1 buys item A and customer 2 buys item A.  Both show on the Inventory Sales Report, but only 1 show on the inventory planning report.  Thank you.  Ann Richmond

Re: Inventory Planning Report

Hello, just to clarify how the algorithm works.

In the report /reporting/rep302.php (Inventory Planning Report), line 175.

First the maximum of the last 4 months is calculated.
Then this maximum is multiplied with 3 to get a 3 months estimate.

This is based on known methods to eliminate the risk for one-time selling.

However, if you feel this is not good for you, then please give me a good argument to change this.

/Joe

Re: Inventory Planning Report

@joe: Thanks for the explanation. Wiki-ed it.

Re: Inventory Planning Report

Joe, I am ok with the calculation, I just can't figure out why some sales appear on the report and some do not.

7 (edited by apmuthu 07/26/2016 02:06:32 am)

Re: Inventory Planning Report

Is it possible that the said report ignores invoices not in the period of 3/4 months? Can you provide a small backup where you can show - how it is - and - how it should be - scenarios - preferably in the en_US-demo.sql instance of a Training Co.?

Re: Inventory Planning Report

Hi, this is my first post, although I have been using FA for a few years now. Absolutely outstanding system. Seahawk's post was about my system when I asked him to try and solve it, and I see Randr has the same problem.
Only in Inventory Planning Report the monthly unit sales is 0 for about 25% of the stock items. The average monthly sales is thus also 0, although it shows the correct QOH, Supp Ord and Cust Ord. The Sugg Ord is then also not correct.
The correct unit sales are available from inventory movements, but it is quite a job to extract everything manually. The other reports seem to be all OK.
Some of the older DOS programs had a "rebuild indexes" option which solved this type of problem, or am I going in the wrong direction?

Re: Inventory Planning Report

Please read @joe's post above (4th post). @randr and @seahawk have not provided their sql dumps for analysis.

Rebuilding indexes in FA is quite simple - drop the index and recreate it from the schema in the Chart of Accounts used.

Re: Inventory Planning Report

Hi, I'm working on @BigFunHappens's system and is trying to solve the same problem as what seahawk enquired about.

Here is an example of the problem: https://imgur.com/a/LBIxjKN

The image shows an example of the inventory planning report as is shown in our system.
The values inside of the red border are incorrect.

Many items function as intended like the 1st item in the example report, but some items have the same problem as the 2nd item.

I have tried to access the MySQL logs but it seems as if we cannot view the logs with our current web host package. Could this be true?

Post's attachments

FA_Inventory_Planning_Report.jpg 39.5 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

11 (edited by poncho1234 05/02/2018 12:11:02 pm)

Re: Inventory Planning Report

Hi, you can obtain a backup copy of the database as described here in the wiki

You need to give us more info for us to help you -

apmuthu wrote:

Upload attachments somewhere and provide link here. Check MySQL / apache error logs for hints.

The FrontAccounting Wiki(Manual, examples, tips, setup info, links to accounting sites, etc) https://frontaccounting.com/fawiki/

Re: Inventory Planning Report

You can still insert file write statements to spit out the inspection points / variable values. Read the Wiki.

Inventory Planning Report is reporting/rep302.php.

13 (edited by poncho1234 05/03/2018 01:03:30 am)

Re: Inventory Planning Report

To produce the report did you filter by catergory or location?

Something else that may help is go to Items & Inventory -> Inventory Item Movement select the item you have a problem with, select the time frame and post the screen shot of the result

The FrontAccounting Wiki(Manual, examples, tips, setup info, links to accounting sites, etc) https://frontaccounting.com/fawiki/

Re: Inventory Planning Report

@joe: Lines 50 and 52 can be removed in reporting/rep302.php as there can be only one description for one id for both category_id and stock_id fields.

Also Line 77  filters on ST_CUSTCREDIT (11) and ST_CUSTDELIVERY (13) instead of on ST_SUPPRECEIVE (25) and ST_CUSTDELIVERY (13) and the need to take care of transactions pertaining to ST_MANUISSUE (28) and ST_MANURECEIVE (29) with the signs being taken care of as well.

Further, lines 38 and 39:

            IF(move.stock_id IS NULL, '', move.loc_code) AS loc_code,
            SUM(IF(move.stock_id IS NULL, 0, move.qty)) AS qty_on_hand

can be re-coded as

            COALESCE(move.loc_code, '') AS loc_code,
            SUM(COALESCE(move.qty, 0)) AS qty_on_hand

Re: Inventory Planning Report

Inventory Planning is executing few lakhs of queries and system is getting hanged for next 15 minutes. Horrible.
Afraid of Inventory reports in FA.

Regards,
Bharathiraja Kaliyamoorthy

Re: Inventory Planning Report

rep302.php is the Inventory Planning Report.

There are only 2 main SQLs in it in the functions:

getTransactions()
getPeriods()

Do some single stepping and check the value of the $sql variable in them and see if the tables need any (non primary key) indexes to speed it up.

Hope you have the following Unique Indexes:

`stock_category`.`description`
`stock_master`.`description`

The former is there in my default install and the latter may need to be inculcated.

How many transactions are you querying and hope your PHP.ini file has adequate memory allocated.

@joe: Adding an Unique Index for `stock_master`.`description` may be in order.

Re: Inventory Planning Report

We have Unique "stock id" not "Description". Stock ID has assigned with auto increment. We have over 30 unique categories and over 13k Stock IDs. FA is running of 4CPU, 16GB RAM based server. We are not able use inventory planning and stock check sheet report as on date.
it is possible to sort/group it by "stock id"?

Regards,
Bharathiraja Kaliyamoorthy

Re: Inventory Planning Report

Brother It looks like the description and long description affects and also the no of query which runs for this report is huge.

@Joe we need to find an alternative  way for it.

Subscription service based on FA
HRM CRM POS batch Themes

Re: Inventory Planning Report

Inventory Planning report does not calculate the raw materials qty. (BoM in Manufacturing) based pending sales order. Tried with Advanced Manufacturing as well. We could find in neither cust. order qty. nor in demand qty. is there any solutions to fix this issue?

Regards,
Bharathiraja Kaliyamoorthy