Video Documentation Link: https://youtu.be/UavIboqfViA
This is a program that will analyze the following:
- The list of stocks that will need to be ordered to maintain the supply based on the record. For example, if your analysis on 1 month, the program will determine the number of items to maintain 2 weeks of stock.
- The list of stocks that are considered "dead stocks", in other words, stocks that exists in the warehouse, but no supply chain established on the product
- The details on each stocks that are currently in the warehouse and the duration to last.
- Name and count of customers that are associated with a specific stock
The program will require 6 main inputs, 5 of which is from MYOB, and 1 of which is from WMS. Note: The name of the file has to match the name specified here for the program to work. Otherwise you will just be notified for missing files. The names of the file are based on the default name of the file when exported for convenience.
- Make sure that you have python installed in your computer
- Download this file, and place it where it pleases
MYOB Input files from Import/Export Assistance has an extra row that has the content "{}" whenever being exported. The python script can handle this, so DO NOT CHANGE THE FILE*
Data that comes from here are related to sales/ items sold.
- Locate the file - This can be found in MYOB: File (Top-left corner) >> Import/Export Assistance
- Select Export Data. Press Next
- Select "Sales" as the file to export.
- Select "Item Sales" as the type of sales.
- Select the date range (recommended is [2 weeks, 4 weeks, 12 weeks] before up to Today). Press Next
- Select the seperate data using "Commas", and Make sure the field "Include field headers in the file" is checked. Press next
- Export the fields:
- Item Number
- Quantity
- Co./Last Name
- Item Description
- Press Next to export and save as "ITEMSALE-#.csv" inside the input folder of the program replacing "#" with number of weeks (2, 4 or 12). (You may need to change the save as type to "All Files", and change the format name)
Data that comes from here are related to the current state of the inventory/warehouse
- Locate the file - This can be found in MYOB: Reports (Bottom Middle) >> Inventory >> Items >> Item List [Summary]
- Press Export To Excel
- Save excel file as "itmls1.xlsx" inside the input folder of the program.
Data that comes from here are related to backorder to ensure that the items that will be ordered are not yet ordered before
- Locate the file - This can be found in WMS: Reports >> Purchases >> Purchase Summary >> By Purchase Order
- Tweak the settings as you please, but the most important are the start and end date (recommmended to be around 3 months before today upto Today)
- Report Type should be detail
- Under the advanced tab, the check field in Receive Status "Open" and "Split" should be checked.
- Press Generate Report
- Click Export Report on the icon that can be found in the top-left corner.
- Change the format of the file to "csv".
- Save the file as "rpt_purchasesgeneral.csv" inside the input folder of the program.
This file does not need to be changed often if there are no new product codes in the system. This essentially contains extra information on the items in the warehouse such as the supplier, description, the amount of selling units per buying units.With this specific type of export in CSV, MYOB sometimes put "," in terms the fields, so this is better to be exported as txt file to be separated by tabs,
- Locate the file - This can be found in MYOB: File (Top-left corner) >> Import/Export Assistance
- Select Export Data. Press Next
- Select "Items" as the file to export.
- Select the seperate data using "tabs", and Make sure the field "Include field headers in the file" is checked. Press next
- Export All fields
- Press Next to export and save as "ITEM.txt" inside the input/sets folder of the program. (You may need to change the save as type to "All Files", and change the format name)
After finishing the setup - exporting of the files. You can start the program either by running "start.bat" or typing in the terminal that is pointed inside the directory of this file "python main.py"
The execution of the program will output a files called "SA-[DateToday]-[Type].xlsx" that can be found inside the output folder of the program. The file will have the date today and the type:
- Based2WeekSale
- Based4WeekSale
- Based12WeekSale
- DifferenceAnalysis
The "Based[NoWeeks]WeekSale" will determine the stock analysis based on NoWeeks (no of weeks) sales record. The Difference Analysis will analyze the different NoWeeks sale to determine the variation and helps in picking the correct type for a specific item.