You can absolutely automate this process using programming and data manipulation in Python. Since you already have experience in Python and are familiar with programming concepts, I can guide you through the general steps to automate this inventory tracking. However, keep in mind that the precise implementation will depend on the structure of your data and existing systems. Here's a general guide to get you started:
Collect Data and Understand the Structure:
Before automating, you need to understand where the necessary data comes from. This could include purchase orders, work orders, the extrusion schedule, and daily kanban counts. Make sure you know the sources of this data and their format.
Import Libraries:
In Python, you can use libraries like pandas to manipulate and analyze data. If you're not familiar with pandas, it will be useful to learn more about how to use it for working with data tables.
Model the Data:
Convert your data into manageable structures in pandas, such as DataFrames. Each data table (purchase orders, work orders, etc.) can be represented as a DataFrame, making manipulation and analysis easier.
Process Data and Calculate Inventory:
Use the formulas you've mentioned to calculate inventory at different stages: final stock, stock that goes out, stock being extruded, stock for purchase orders. You can use pandas' aggregation functions to calculate relevant totals and quantities.
Update Inventory:
After calculating the values, update the inventory based on the operations carried out in that time period. This might involve subtracting materials going out, adding materials being extruded, and adding materials to future orders.
Continuous Tracking:
Set up the script to run automatically at regular intervals (it could be daily) and update the inventory accordingly. This will ensure you always have an accurate view of the inventory at any given time.
Generate Alerts and Reports:
If necessary, you can configure your script to generate alerts or reports when certain thresholds are reached or when there's a need to restock.
Exception Handling:
Make sure to consider possible issues and exceptions, such as missing data or errors in calculations. Adding error handling and validations will enhance the robustness of your solution.
Testing and Adjustments:
Before fully implementing the automation, perform thorough testing with sample data to ensure calculations and updates are being done correctly.
Implementation and Monitoring:
Once you're confident with the automation, deploy the solution in your production environment and monitor its performance to ensure it's generating accurate and useful results.
Remember that this is a general guide, and the exact details will vary based on your data and specific needs. You might need to collaborate with experts in your factory to better understand data structures and processes involved, ensuring that your automated solution is accurate and reliable.