Factovize MRP Software User Manual

MRP Software: raw-material planning, purchase-order follow-up and vendor tracking · Complete guide for users, administrators and IT teams · Covers the testing build and production configuration · Manual edition 1.0 | 21 November 2026 · Product by Factovize

1. About this manual

This manual explains how to install, configure, operate and administer Material Plan (the Factovize MRP Software), a web application that turns forecast and stock data into a raw-material purchasing plan and tracks every purchase order through to receipt.

1.1 Who should read it

Reader Start with
Planners, purchasers, store and production staff (daily users) Chapters 2, 4, 5 and 6 (Dashboard, Report, Requirement, PO Process, Tracking, History, Generate)
Administrators and Super-Admins (set-up and user management) Chapters 3, 5 and 6.8 to 6.13 (Settings), plus Chapter 7
IT, DevOps and DBA teams (installation and hosting) Chapters 8 and 9, and Appendix A
Support and trainers Chapter 10 (Troubleshooting and FAQs) and Appendix C

1.2 How the manual is organised

  • Chapter 2 gives the complete software overview: purpose, concepts, architecture, package contents and navigation.
  • Chapter 3 lists user roles and exactly what each role can see and do.
  • Chapter 4 covers signing up, signing in and the account menu.
  • Chapter 5 contains step-by-step operating procedures for set-up, the weekly planning cycle and daily follow-up.
  • Chapter 6 is the module-wise, screen-by-screen reference, with annotated screenshots.
  • Chapter 7 covers reports, Excel import templates and configuration.
  • Chapters 8 and 9 cover the testing build and the production configuration and administration.
  • Chapter 10 contains troubleshooting and FAQs. The appendices hold reference tables.

1.3 Conventions used

Convention Meaning
Bold text A button, field, menu item or screen name exactly as it appears in the application.
Monospace text A file name, folder, command, environment variable or value you type.
Red numbered circles Callouts on screenshots. Each number is explained in the table directly below the figure.
Note / Tip / Warning / Important boxes Additional information, shortcuts, risks, and actions that must not be skipped.
Note: All screenshots were captured from the real Material Plan user interface supplied in the package (build 1.0.0-SNAPSHOT) using illustrative sample data (fictitious company, customers and parts). Your own data, names and counts will differ. Colours, labels and layouts are as shipped.

1.4 Document information

Item Value
Product Material Plan (MRP Software), by Factovize
Software build documented 1.0.0-SNAPSHOT, built 2026-11-05 (git head 13b236b, package marked "testing")
Manual edition 1.0, 19 November 2026
Coverage End-user operation, administration, testing build set-up and production configuration

2. Complete software overview

2.1 What Material Plan does

Manufacturers that build parts for customers need the right raw material (RM) and accessories at the right time. Material Plan answers four questions every week:

  • What do we need? Customer forecast and current production stock are converted into raw-material requirements, month by month, using the part-to-material relationships you maintain.
  • Are we covered? Each part and month is colour-coded by how it will be met: finished goods, work in progress, raw material in stock, special process needed, PO placed, or PO not yet placed.
  • What must we order, and when? Requirements that no purchase order covers yet appear as "Not Accounted". You raise a PO against them and the requirement is accounted for.
  • Is it arriving? Every PO is followed through its purchasing stages (RFQ to PO placed) and, once placed, vendor commitments are tracked until the material is received. Overdue and due-today follow-ups are highlighted.

2.2 End-to-end workflow

Stage Where in the application Outcome
1. Master data Settings: Customers, Parts, RM Master, Part-RM The catalogue of customers, parts, materials and the factors linking parts to materials
2. Data import Generate: Import forecast data Current RM availability and the customer order forecast are loaded from Excel
3. Report generation Generate: Generate report A dated, named report snapshot with colour-coded readiness and fresh requirement lines
4. Review Dashboard, Report, Requirement KPIs, the part-by-month matrix and the list of requirements still to be ordered
5. Purchasing PO Process POs created and moved through RFQ, PR and PO-placed stages with follow-up dates
6. Vendor commitment and receipt Tracking Committed quantities and dates followed up until RECEIVED
7. Audit History, PO timeline, Tracking history Who changed what, and when

2.3 Key concepts and terms

Term Meaning
Tenant / workspace An isolated company space. Every account created through sign-up gets its own tenant; users and data of one tenant are never visible to another.
Customer A company you manufacture parts for.
Part A finished product you make. It belongs to one customer, has a unit price, and is flagged whether a special process (for example heat treatment) is needed.
Raw material (RM) A purchased input. Its type is RM or ACCESSORIES, and it has a measurement type, unit, unit price and vendor lead time.
Part-RM relation Links a part to a raw material using a relation (MUL or DIV) and a factor. The factor converts part quantity into material quantity. An optional special-process RM code can be recorded.
FG, WIP, FG buffer Finished goods on hand, work in progress, and the buffer stock of finished goods you want to keep.
Forecast Monthly customer order quantities per part, imported from Excel.
RM availability Current stock and quantity already on order for each raw material, imported from Excel.
Report A named snapshot generated from master data, forecast and RM availability. The latest report drives the Dashboard and Report pages.
Requirement A quantity of one raw material needed for one part in one month. Status is NOT_ACCOUNTED until a PO covers it, then ACCOUNTED.
PO (process record) A purchase order record created in PO Process, moving through RFQ and PR stages to PO_Placed.
Commitment A vendor promise (quantity, committed date, receiving date) against a placed PO, followed up until RECEIVED.
Follow-up date The date by which the next action on a PO or commitment is due. Rows turn red when overdue and green when due today.
Demo data Sample records prefixed "Demo -" loaded into a brand-new workspace so you can explore. It can be removed in one click.

2.4 The colour code used throughout the Report and Dashboard

Colour Label Meaning
Green (#92D050) FG Demand is covered by finished goods already in stock.
Yellow (#FCE34B) WIP Demand will be met from work in progress.
Blue (#00B0F0) RM Available Raw material is in stock, but the part still has to be produced.
Brown (#d2691e) Special Process Needed The part needs a special process such as heat treatment before it can ship.
Pink (#F892FB) PO Placed Material is on order against a placed PO.
Red (#FF4539) PO not Placed No PO covers the requirement. Action needed.
Note: Colours are ranked from least to most urgent in the order shown above. In the Report and Dashboard a month cell takes the most urgent colour of its own materials and of every earlier month in the same row, so a row can only stay the same or move towards red as months go by.

2.5 Architecture

Layer Technology Notes
Web interface React single-page application (pre-built, in Web/) No Node.js or Maven is needed to run the package. Served by the backend itself.
Backend Java 17+ Spring Boot 3.2.5 (lib/rmplanning-backend-1.0.0-SNAPSHOT.jar) Embedded Tomcat; REST endpoints used by the interface; CSRF protection; role-based authorisation.
Database MySQL (Connector/J 8.3.0) Schema in conf/schema.sql is applied automatically when no tables exist.
Excel handling Apache POI 5.2.5 Imports of master data, RM availability and forecast.
E-mail Spring Mail (SMTP) Sign-up confirmation and password-reset messages.
Passwords BCrypt hashing Passwords are never stored in clear text.

2.6 What is in the package

Folder or file Contents
bin/ Start and stop scripts (start.sh, stop.sh, start.bat, stop.bat), environment script setenv.sh, service installers.
conf/ application.yml (settings), schema.sql (database schema), migrations/ (prepared SQL, not run automatically), testing/ (example environment).
lib/ The application JAR and its dependencies.
Web/ The built user interface, logos and the six sample import workbooks in Web/samples/.
data/upload/ Runtime upload folder.
log/ application.log, error.log and archived/ (rotated, compressed logs).
var/ Process id file rmplanning.pid.
license/ Third-party licence notices.
README.md, TESTING_PACKAGE_MANIFEST.txt Testing-build instructions and the package manifest.

2.7 Navigating the application

After signing in you work in one of two areas, switched from the account menu at the top right:

  • Material Plan (planning area): Dashboard, Report, Requirement, PO Process, Tracking, History and Generate.
  • Settings (administration area): Company, Users, Customers, Parts, RM Master and Part-RM. Shown only to roles with Settings access.

The left sidebar lists the pages of the current area. The menu button at the top left collapses the sidebar to icons. The page title is shown in the top bar. The browser addresses are listed below, which is useful for bookmarks and for support.

Page Address (path)
Sign in / Create account / Forgot password /login, /signup, /forgot-password
Dashboard /rm-forecast
Report, Requirement, PO Process, Tracking, History, Generate /rm-forecast/report, /action-update, /po-process, /tracking, /history, /generate
Settings pages /settings/company, /users, /customers, /parts, /rm-master, /part-rm-relation

3. User roles and permissions

Every user has exactly one role. Access is enforced twice: the interface hides what a role cannot use, and the server independently rejects forbidden requests (an HTTP 403 "forbidden" response).

3.1 The four roles

Role Purpose Typical person
Super-Admin Owner of the workspace. Full access, including editing company details and creating Admin users. Person who signed the company up; the IT or finance owner
Admin Runs the workspace day to day. Full access to planning and settings, can add Uploaders and Collaborators. Materials manager
Uploader Does the planning work and maintains master data, but cannot manage users or delete master data. Planner, purchasing executive
Collaborator Read-only access to the planning pages. Cannot change anything. Management, stores, production, sales
Important: A person who signs up through the Create an account page becomes the Super-Admin of a brand-new workspace of their own. Super-Admin accounts are not shown in the Users list.

3.2 Permission matrix

Permissions are stored as a bit mask per function: Read = 1, Write = 2, Edit = 4, Delete = 8. The defaults seeded by the application are:

Role Users (add_user) Settings (settings_page) Planning operations (mrp_operations)
Super-Admin 15 (read, write, edit, delete) 15 (full) 15 (full)
Admin 15 (full) 15 (full) 15 (full)
Uploader 0 (none) 7 (read, write, edit; no delete) 15 (full)
Collaborator 0 (none) 0 (none) 0 (none)

3.3 What each role can do

Capability Super-Admin Admin Uploader Collaborator
View Dashboard, Report, Requirement, PO Process, Tracking, History, Generate Yes Yes Yes Yes
Download the report as Excel Yes Yes Yes Yes
Import RM availability and forecast; generate reports Yes Yes Yes No
Create PO, update PO status, add commitments, update order status Yes Yes Yes No
Open Settings (Company, Customers, Parts, RM Master, Part-RM) Yes Yes Yes No
Add or import master data Yes Yes Yes No
Delete master data Yes Yes No No
Open Users and add users Yes Yes No No
Roles a user may assign Admin, Uploader, Collaborator Uploader, Collaborator None None
Edit company details Yes View only View only No access
Delete (deactivate) own account Yes (shown on Company page) No No No
Clear demo data (banner) Yes Yes No No

3.4 Rules enforced by the server

  • A user cannot change their own role and cannot delete their own account through user management.
  • The Super-Admin account cannot be altered by other users.
  • Only Super-Admin may change company identity details; Admin and Uploader see them read-only.
  • Deleting master data (customers, parts, RM, relations, RM types) is limited to Super-Admin and Admin.
  • All state-changing requests carry a CSRF token (the interface does this automatically).
  • Users and data are filtered by tenant: you only ever see records of your own workspace.

3.4.1 How the interface looks for each role

The screenshots in Section 6.14 show the same pages as an Uploader, a Collaborator and an Admin, so trainers can demonstrate the differences.

4. Getting started

4.1 Create an account (sign up)

Use this once, for a new company workspace. Colleagues are added later by an Admin (see Section 6.9) and do not sign up themselves.

  1. Open the application address (for example http://localhost:8090/ for the testing build, or your company address in production) and select Create an account, or go straight to /signup.
  2. Enter your Name, Email and Password. The password must be at least 6 characters. Use the eye icon to show or hide what you type.
  3. Select Sign up. A confirmation message appears. The application creates a new tenant, a company record and your user in inactive status.
  4. Open the confirmation e-mail and select the link. The link is valid for a limited time; if it has expired you will be asked to sign up again.
  5. Return to the sign-in page. A message "Email confirmed. Sign in to explore." is shown. Sign in.
The Create account page
No. Screen element What it does
1 Name Your display name (stored as your first name).
2 Email Becomes your username. It must not already be used by any account in the system.
3 Password At least 6 characters.
4 Show / hide password Toggles the eye icon to reveal the typed password.
5 Sign up Submits the form and sends the confirmation e-mail.
6 Already have an account? Sign in Returns to the sign-in page.
Note: On first activation the workspace is filled with demo data (records prefixed "Demo -") so that every page has something to show. See Section 5.8 to remove it.
Warning: The Create account page is open to anyone who can reach the application address, and each sign-up creates a separate workspace. If the application is hosted for a single company, restrict who can reach /signup (Section 9.8). In the testing build, e-mail is disabled and accounts must be verified with the testing helper (Section 8.4).

4.2 Sign in

  1. Open /login.
  2. Type your Email (your username) and Password.
  3. Select Sign in. On success you land on the Dashboard.
The Sign in page
No. Screen element What it does
1 Email Your username. Letters are treated case-insensitively.
2 Password Your password.
3 Show / hide password Reveals or hides the typed password.
4 Forgot username or password? Opens the reset page (Section 4.3).
5 Remember me Ticked by default. Sign-in is kept by the browser until you choose Sign Out.
6 Sign in Submits your credentials.
7 Create an account Opens the sign-up page (Section 4.1).

If sign-in fails you will see Auth Failed: followed by the reason. Typical reasons are in the table below.

Message Meaning and action
Auth Failed: Incorrect username or password Wrong credentials, or no such user. Retype carefully or use the reset page.
Auth Failed: Please confirm your email before signing in. The account is still inactive. Open the confirmation e-mail (or, in the testing build, use the verification helper).
Auth Failed: Unable to reach server. Verify network connection. The application is down or unreachable. Contact your administrator (Chapter 10).
Multiple accounts found for this email. Contact your administrator. The e-mail exists in more than one workspace. An administrator must resolve the duplicate.
Your account is no longer valid. The account was disabled or deleted.

4.3 Forgot your username or password

  1. On the sign-in page select Forgot username or password?.
  2. Enter your e-mail address and select Send reset link.
  3. If an account exists, an e-mail with a reset link is sent. Open the link, enter and confirm a new password (at least 6 characters) and select Update password.
  4. Sign in with the new password. You will see "Password updated. Sign in with your new password."
The Forgot username or password page
No. Screen element What it does
1 Email The e-mail address of your account (your username).
2 Send reset link Requests the reset e-mail. For privacy, the screen does not reveal whether an account exists.
3 Remember your password? Sign in Returns to the sign-in page.
Note: Reset and confirmation links are built from the configured application address and need working e-mail. With e-mail disabled (the testing build), reset e-mails are not delivered.

4.4 The account menu and signing out

Select your initials in the top-right corner to open the account menu.

The account menu
No. Screen element What it does
1 Name and e-mail Confirms who is signed in.
2 Material Plan Switches to the planning area (Dashboard and related pages).
3 Settings Switches to the administration area. Not shown to Collaborators.
4 Sign Out Ends your session and returns to the sign-in page. Always sign out on shared computers.

4.5 Demo data banner

A newly activated workspace shows a banner on the planning pages while demo data is active. It is visible only to Super-Admin and Admin.

Dashboard with the demo-data banner
No. Screen element What it does
1 Demo data active Reminds you that the records you see are samples prefixed "Demo -".
2 Clear demo data After confirmation, deletes all demo customers, parts, materials, relations and related stock, forecast and orders, then opens Generate.
3 Go to Generate Jumps to the import and report-generation page.

5. Step-by-step operating procedures

These procedures chain the screens in Chapter 6 into complete jobs. Each procedure lists who can perform it.

5.1 SOP-01: Set up a new workspace

Performed by: Super-Admin or Admin.

  1. Sign up and confirm your e-mail (Section 4.1), then sign in.
  2. Open Settings > Company and complete the company details (Section 6.8). Only a Super-Admin can save them.
  3. Open Settings > Users and add your colleagues with suitable roles (Section 6.9).
  4. Decide whether to explore with the demo data first. When ready, select Clear demo data on the banner.
  5. Load your master data (SOP-02).

5.2 SOP-02: Load master data

Performed by: Super-Admin, Admin or Uploader. Master data must be loaded in this order because each item refers to the one before it.

Order Settings page Must exist first Import file (sample in Web/samples/)
1 Customers None customer_import_sample.xlsx
2 Parts Customers part_import_sample.xlsx
3 RM Master None (RM types RM and ACCESSORIES are built in) rm_master_import_sample.xlsx
4 Part-RM Parts and RM Master part_rm_relation_import_sample.xlsx
  1. For each page in the order above, either add records one at a time with Add, or select Import and upload your Excel file.
  2. To import, first select Download sample file in the panel, copy your data into the Data sheet using the same headers, and upload the file.
  3. Check the list afterwards. Existing customers and raw materials with the same name are updated rather than duplicated.
  4. Confirm that every part has at least one relation to a raw material, otherwise it will not generate requirements.
Tip: The Generate page tells you exactly which of the four master-data lists is still empty (Section 6.7), so you can use it as a checklist.

5.3 SOP-03: Weekly planning cycle

Performed by: Uploader, Admin or Super-Admin. Repeat each time you refresh stock and forecast (for example weekly).

  1. Export current raw-material stock from your ERP or store records into the RM availability template (RM, AVAILABLE, PO Placed Qty).
  2. Prepare the forecast file (part, WIP, in-production and finished-goods quantities, then one column per forecast month).
  3. Open Generate. Under Import forecast data, upload the RM availability file, then the Forecast data file. Wait for the "import completed successfully" message after each.
  4. In Generate report enter a Report name (for example "Weekly RM Plan 47") and an optional Report comment, then select Generate report.
  5. Select View generated report, or open Dashboard to see the new KPIs and the 12-month summary.
  6. Review Report (Section 6.2) for rows that are pink or red, and Requirement (Section 6.3) for items that are Not Accounted.
  7. Raise purchase orders for what must be bought (SOP-04).
Warning: The RM availability import replaces all existing RM availability data for your workspace, and the forecast import replaces existing forecast data. Always upload complete files, not partial ones.

5.4 SOP-04: Raise a purchase order from the requirements

Performed by: Uploader, Admin or Super-Admin.

  1. Open PO Process and select Create PO.
  2. Choose the Raw Material. The list is built from your current requirements.
  3. Choose the Part Name. The month table shows what each month requires.
  4. Enter Qty to Order. The ORDER row shows how the quantity will be allocated to the earliest months first.
  5. Set the PO Placement Date (the date by which the PO should be placed) and the First Followup Date (today or later). Enter the Vendor.
  6. Select ADD. "PO Created Successfully." appears. The PO starts in status RFQ_Initialization_Pending, and the allocated requirement lines become Accounted (fully) or partly accounted.
  7. Repeat for other parts that use the same material if needed.

5.5 SOP-05: Move a PO through the purchasing stages

  1. In PO Process, find the PO. Rows in red are overdue, green are due today.
  2. Select the edit icon in the Actions column.
  3. Set the new Status (RFQ_Initiated, RFQ_Floated, PR_Raised, PR_Follow_up, PO_Placed).
  4. When the status is PO_Placed you must enter the PO Number.
  5. Set the next Follow Up Date (today or later), add Comments, and select Update.
  6. Select the history icon at any time to see the full timeline of who changed the PO and when.

5.6 SOP-06: Record and follow up vendor commitments

  1. Once a PO is placed, open Tracking and select Add Commitment.
  2. Pick the placed PO in Open POs, enter the Order Quantity the vendor is committing, the Vendor Committed Date and the Receiving Date (expected arrival). The committed date must not be after the receiving date and neither may be in the past.
  3. Select Update. A new commitment appears with status VENDOR_FOLLOWUP.
  4. As the order progresses, select the row, set Status to SHIPMENT_FOLLOWUP, then RECEIVED when the goods arrive, and set the next Follow Up Date.
  5. A vendor may split a PO into several shipments. Add one commitment per shipment.

5.7 SOP-07: Daily follow-up routine

  1. Open Dashboard. Look at Overdue + Today, Next 7 Days and Materials Arriving.
  2. Open PO Process and work the red rows first, then green rows.
  3. Open Tracking and chase vendors for the red and green rows.
  4. After each call or e-mail, update the status, set the next follow-up date and note the outcome in Comments.

5.8 SOP-08: Go live (remove demo data and load real data)

  1. As Super-Admin or Admin, select Clear demo data on the banner and confirm.
  2. Complete SOP-02 (master data) and SOP-03 (first import and report).
  3. Ask each user to sign in once and confirm they see the pages for their role (Section 3.3).

5.9 SOP-09: Add a user

  1. Open Settings > Users and select Add.
  2. Enter First Name, optional Last Name and Phone, Email / Username, Role and an initial Password.
  3. Select Add User. Share the initial password through a secure channel.

6. Module-wise reference and screen-by-screen guide

Each section below describes one module: its purpose, who can use it, how to use it, and an annotated screenshot with an explanation of every numbered element.

6.1 Dashboard

Purpose: a one-screen health check of purchasing activity and material readiness. Who: all roles. Address: /rm-forecast.

MRP Dashboard
No. Screen element What it does
1 Menu button Collapses or expands the left sidebar.
2 Sidebar (Planning) Dashboard, Report, Requirement, PO Process, Tracking, History, Generate.
3 Account menu Open to switch area or sign out (Section 4.4).
4 KPI cards Four live counts. Selecting any card opens the Report page. Definitions are in the table below.
5 Colour legend Explains the six status colours (Section 2.4).
6 Month headers One column per forecast month (12 shown). The header colour is the cumulative worst status for that month across all parts.
7 FG Readiness % row Share of parts in that month whose demand is fully covered by finished goods (green count divided by total).
KPI card What it counts
Overdue + Today (Tasks to work on) PO follow-ups (status not yet PO_Placed) and vendor-commitment follow-ups (status not yet RECEIVED) whose follow-up date has arrived or passed.
Next 7 Days (Upcoming activity) The same two kinds of follow-up falling due within the next seven days.
Materials Arriving (Shipments in next 7 days) Commitments not yet RECEIVED whose receiving date falls within seven days (including late ones).
Not Accounted (Yet to be considered for PO) Requirement lines that no PO has yet covered.

Below the cards, the RM Forecast summary table counts, for every month, how many parts fall into each status (FG, WIP, RM Available, Special Process Needed, PO Placed, PO not Placed), the total Parts to be Shipped, and FG Readiness %.

Note: If no report has been generated yet, the Dashboard shows "No dashboard data available. Generate a report from the Generate tab." Generate a report first (Section 6.7).

6.2 Report

Purpose: the detailed part-by-month matrix of the latest generated report. Who: all roles. Address: /rm-forecast/report.

Report page
No. Screen element What it does
1 Report name The name you gave when generating the report.
2 Generated on Date and time the report was created.
3 Download as Excel Saves the table, with its colours, as an Excel file named after the report.
4 Search Filters rows by customer, part name or raw material as you type.
5 Legend The six status colours.
6 Customer and Part_No columns Stay fixed on screen while you scroll sideways through the months.
7 FG_Buffer Stock Buffer stock of finished goods. Its cell takes a colour when the buffer is positive and not fully covered.
8 Green month cell The number is the forecast quantity for that month; green means it is covered by finished goods.
9 Brown month cell Special process (for example heat treatment) is needed before this quantity can ship.

Columns, left to right: Customer, Part_No, FG_Qty (finished goods), WIP, FG_Buffer Stock, one column per month, then RM_Name (main raw material), Factor, Stock_Qty (RM in stock), PO_Qty (RM on order) and Order_Qty. Scroll sideways to see the right-hand columns.

Report filtered with the search box

Type part of a customer, part or material name. Clear the box to see all rows again. If nothing matches, "No report rows match this search." is shown.

6.3 Requirement

Purpose: the working list of raw-material requirements and whether a PO already covers them. Who: all roles (view). Address: /rm-forecast/action-update.

Requirement page (Not Accounted, Monthly)
No. Screen element What it does
1 Period Switch between Monthly (one line per month) and Yearly (totals per year).
2 RM Show one raw material or All. The list is built from your current requirements.
3 Status Not Accounted (default), Accounted, or All.
4 Search Filters across part, material, month and quantities.
5 Pager Shows the range of results and lets you choose 25, 50 or 100 rows per page.
6 Quantity Required / Quantity Accounted How much material the part needs in that month, and how much of it a PO already covers.
7 Status badge NOT ACCOUNTED means no (or only partial) PO coverage; ACCOUNTED means fully covered.
Requirement filtered by raw material, status All, Yearly
Tip: To decide what to buy, filter Status = Not Accounted, pick one RM, and read the Quantity Required column. Then raise the PO in PO Process (Section 6.4).

6.4 PO Process

Purpose: create purchase-order records and move them through the purchasing stages. Who: all roles can view; Uploader, Admin and Super-Admin can create and update. Address: /rm-forecast/po-process.

PO Process list
No. Screen element What it does
1 Create PO Opens the Create PO window. Hidden from Collaborators.
2 Search and pager Filter by material, vendor, PO number, quantity, dates or status.
3 PO # The purchase-order number. Shows "PO not generated" until you enter one when placing the PO.
4 Red row Next Follow Up date is in the past. Act now.
5 Green row Next Follow Up is today.
6 Update (edit icon) Opens the Update PO Process panel (not shown to Collaborators).
7 Timeline (history icon) Opens the PO Timeline History panel.

Rows with a future follow-up date are shown in black. Columns are Raw Material, Vendor, PO #, PO Quantity, PO Deadline, Status, Next Follow Up and Actions.

6.4.1 Create PO

Create PO window
No. Screen element What it does
1 Raw Material The material you are buying.
2 Part Name The part whose requirement you are covering. Selecting it fills the month table.
3 Qty to Required Read-only total still required for that part and material.
4 Qty to Order The quantity you are ordering (whole numbers, at least 1).
5 PO Placement Date The target date by which the PO should be placed. It becomes the PO Deadline in the list.
6 First Followup Date When you will next act on this PO. It cannot be in the past.
7 Vendor The supplier name (free text).
8 Month table REQUIRED shows the need per month; ORDER shows how your quantity is spread, earliest month first.
9 ADD Creates the PO.
Confirmation after ADD

A green "PO Created Successfully." message appears and the window closes by itself. The new PO shows in the list with status RFQ_Initialization_Pending. If the follow-up date is in the past you will see "Please fill the Correct Follow Up Date".

6.4.2 Update PO Process

Update PO Process panel
No. Screen element What it does
1 PO Number Mandatory when the status is PO_Placed ("Please fill the PO Number" otherwise).
2 Status RFQ_Initialization_Pending, RFQ_Initiated, RFQ_Floated, PR_Raised, PR_Follow_up or PO_Placed.
3 Follow Up Date The next action date; today or later.
4 Comments Short note describing what happened. Saved in the timeline.
5 Update Saves the change and refreshes the list.
6 Close (x) Closes the panel without saving.

RM Name, Vendor Name and Quantity are shown read-only at the top of the panel.

PO status Meaning
RFQ_Initialization_Pending PO record created; request for quotation not yet started.
RFQ_Initiated RFQ preparation or first contact with vendors has begun.
RFQ_Floated RFQ has been sent to vendors; waiting for quotes.
PR_Raised Purchase requisition raised internally.
PR_Follow_up Following up approval or processing of the requisition.
PO_Placed Purchase order placed with the vendor. The PO now becomes available for vendor commitments in Tracking.

6.4.3 PO Timeline History

PO Timeline History panel
No. Screen element What it does
1 RM Name / PO number Identifies the PO being shown.
2 History entries Each entry shows the date, who made the change, the old and new status and the comment. The first entry, "Initial PO Addition", is the creation.
3 Close (x) Closes the panel.

6.5 Tracking

Purpose: follow vendor commitments on placed POs until the material is received. Who: all roles view; Uploader, Admin and Super-Admin can add and update. Address: /rm-forecast/tracking.

Tracking list
No. Screen element What it does
1 Add Commitment Opens the Add Committed Quantity panel (hidden from Collaborators).
2 Search and pager Filter and page through commitments.
3 Vendor Committed Date The date the vendor promised to dispatch or deliver.
4 Row Select a row to update it. Red text means the follow-up is overdue; green means due today.
5 History icon Opens Tracking History for that commitment without changing the selection.
6 Status VENDOR_FOLLOWUP, SHIPMENT_FOLLOWUP or RECEIVED.

Columns are RM Name, RM PO Number, Quantity, Vendor Committed Date, Receiving Date, Status and Followup Date.

6.5.1 Add Committed Quantity

Add Committed Quantity panel
No. Screen element What it does
1 Open POs The POs that are placed. "No placed POs" means none has reached PO_Placed yet.
2 Order Quantity The quantity the vendor commits in this shipment (whole number, at least 1).
3 Vendor Committed Date Promised date; must not be in the past or after the receiving date.
4 Receiving Date Expected arrival at your site; must not be in the past.
5 Comments Context, for example "split shipment".
6 Update Saves the commitment with status VENDOR_FOLLOWUP.

6.5.2 Update Order

Update Order panel
No. Screen element What it does
1 Status Move the commitment to SHIPMENT_FOLLOWUP, then RECEIVED.
2 Follow Up Date Next date to chase; required and not in the past.
3 Comments Outcome of your latest contact.
4 Update Saves and records the change in the history.

RM Name, PO Number, Quantity, Vendor Committed Date and Receiving Date are read-only in this panel.

6.5.3 Tracking History

Tracking History panel
No. Screen element What it does
1 RM Name / PO number The commitment being shown.
2 History entries Date, user, status change and comment for each update.

6.6 History

Purpose: a list of every report generated in your workspace. Who: all roles. Address: /rm-forecast/history.

History page
No. Screen element What it does
1 Search and pager Filter by ID, name, comment or date.
2 ID Report number; higher is newer.
3 Generated Date and time the report was produced. Name and Comment are the values entered on the Generate page ("-" when blank).
Note: The Dashboard and Report pages always show the latest report. The History page is a log of the reports that were generated.

6.7 Generate (import and report generation)

Purpose: load stock and forecast, and generate a report. Who: Uploader, Admin and Super-Admin; Collaborators can open the page but cannot act. Address: /rm-forecast/generate.

Generate report page
No. Screen element What it does
1 Import forecast data Card for the two Excel imports.
2 Download sample file Downloads the matching template, with example data on sheet 1 and format notes on sheet 2.
3 RM availability file Choose an .xls or .xlsx file. It uploads at once and shows a result message.
4 Forecast data file Choose the forecast workbook. Same behaviour.
5 Generate report Card for creating the report.
6 Report name Required. Shown on the Report and History pages.
7 Report comment Optional note, for example the reason for regenerating.
8 Generate report Creates the report from master data, RM availability and forecast.
Generated report
No. Screen element What it does
1 Success message "Report generated successfully." (or the import result message).
2 View generated report Opens the Report page for the new report.
Generate - issue window
No. Screen element What it does
1 Warning Lists which of Customers, Parts, RM Master and Part-RM Relations is empty. The report name field and button are disabled until all four have data.
2 Go to master data Takes you to Settings > Customers.
Message Meaning
Please upload an Excel file (.xls or .xlsx). The file type is not Excel.
Importing… Upload in progress.
<Name> import completed successfully. The file was read and stored.
<Name> import failed. Please log in again or check the file format. Session expired, or the headers or data do not match the template.
Complete master data in Settings before generating a report. One or more master lists are empty.
You do not have permission to generate reports. Your role is Collaborator.

6.8 Settings: Company

Purpose: your company profile (one record per workspace). Who: Super-Admin edits; Admin and Uploader view. Address: /settings/company.

Company details
No. Screen element What it does
1 Settings sidebar Company, Users, Customers, Parts, RM Master, Part-RM. Users appears only for roles allowed to manage users.
2 Company Name Required. Also required: Country.
3 Address Street, city and postal code.
4 Tax Identification No. GST, VAT or EIN number, as applicable. Contact and Website are optional.
5 Save changes Saves the profile. Shown as Create company the first time. Only for Super-Admin.
6 Delete account Permanently removes your own user account after a confirmation; you are signed out and cannot sign in again. Only Super-Admin sees this card.
Warning: Delete account removes the signed-in Super-Admin user, not just a setting. Do not use it unless you intend to lose access to this workspace with that e-mail address.

6.9 Settings: Users

Purpose: add colleagues and see who has access. Who: Super-Admin and Admin. Address: /settings/users.

Users list
No. Screen element What it does
1 Add Opens the Add User panel.
2 Search Filter by any column.
3 Pager Rows per page and page navigation.
4 Role Admin, Uploader or Collaborator. Super-Admin accounts are not listed.
5 Status active can sign in; inactive has not yet confirmed the e-mail or has been disabled.
Add User panel
No. Screen element What it does
1 First Name Required. Last Name and Phone are optional.
2 Email / Username Required. Must be unique across the whole system.
3 Role Only the roles you are allowed to assign are listed (Section 3.3).
4 Password Initial password. Ask the user to keep it confidential.
5 Add User Creates the user. Errors such as "Username already exists" appear above the button.
Note: In this build the Users screen lists and adds users. Changing a role or status and deleting a user are not offered in the interface.

6.10 Settings: Customers

Purpose: the companies you make parts for. Who: Super-Admin, Admin and Uploader. Address: /settings/customers.

Customers list
No. Screen element What it does
1 Import Opens the import panel for an Excel file.
2 Add Opens the Add Customer panel (Customer Name and Country, both required).
3 Search and pager Filter and page through customers.
Import Customers panel
No. Screen element What it does
1 Download sample file Template with example rows and a Format sheet.
2 Hint States the required header and columns. Here: first row header must be CUSTOMER NAME; columns customer name, country.
3 Excel file Select your .xls or .xlsx. The import starts immediately; on success the panel closes and the list refreshes.

Every master-data page (Customers, Parts, RM Master, Part-RM) uses the same Import panel pattern.

6.11 Settings: Parts

Purpose: the finished parts you manufacture. Address: /settings/parts. Columns: Part Name, Price, Customer, Special Process.

Parts list
Add Part Master panel
No. Screen element What it does
1 Part Name Required.
2 Unit Price Required; zero or more.
3 Customer Pick from existing customers. Add the customer first if it is missing.
4 Special Process Needed YES if the part needs a special process such as heat treatment. It will show brown in the Report where applicable.

6.12 Settings: RM Master

Purpose: the raw materials and accessories you buy. Address: /settings/rm-master. Columns: Name, Type, Lead time, Unit, Price.

RM Master list
Add Raw Material panel
No. Screen element What it does
1 RM Type RM (raw material) or ACCESSORIES.
2 Raw Material Name Required. Names must match those used in the import files.
3 Vendor Lead Time Whole number, zero or more. The import template labels this in weeks.
4 Unit Price Price per unit.
5 Measurement Type WEIGHT, LENGTH or COUNT.
6 RM Measurement Unit kg, tonnes, mts, inches or nos.

The Description box is optional free text.

6.13 Settings: Part-RM relation

Purpose: tells the system how much of which raw material each part consumes. Address: /settings/part-rm-relation. Columns: Part, RM, Relation, Factor, Special Process RM.

Part-RM relations list
Add Part RM Relation panel
No. Screen element What it does
1 Part Name An existing part.
2 Raw Material An existing raw material.
3 Part RM Relation Multiplication (MUL): material needed = part quantity x factor, for example 2.5 kg of bar per part. Division (DIV): material needed = part quantity / factor, for example one ingot yields 40 parts.
4 Part RM Factor The conversion factor; at least 0.1.
5 Special Process RM Optional code of the material used for the special process (blank when not used).
Tip: A part can have several relations (for example bar plus bearings). Add one row per material.

6.14 How other roles see the application

6.14.1 Uploader

Uploader in Settings: no Users page
No. Screen element What it does
1 Settings sidebar Company, Customers, Parts, RM Master and Part-RM only. The Users page is not offered.
Uploader in PO Process

6.14.2 Collaborator

Collaborator in PO Process
No. Screen element What it does
1 Toolbar No Create PO button.
2 Actions Only the timeline icon; the edit icon is not shown.
Collaborator on Generate
No. Screen element What it does
1 Import card "Your role cannot import Excel files."
2 Generate card "Your role cannot generate reports. Ask an Admin if you need this access."
Collaborator account menu

If a Collaborator types a Settings address by hand, they are redirected to the Dashboard.

6.14.3 Admin

Company details - Admin view
No. Screen element What it does
1 Notice "Company identity is managed by a Super-Admin. You can view these details."
2 Fields Read-only; there is no Save or Delete account button.

7. Reports and configuration guides

7.1 Reports in Material Plan

Material Plan produces one kind of report, the RM planning report. Each generation creates a permanent, named snapshot; the most recent one feeds the Dashboard and the Report page.

Output Where Contents
RM planning report (on screen) Report Part-by-month matrix with FG, WIP, FG buffer, monthly forecast quantities coloured by status, main raw material, factor, stock, PO quantity and order quantity.
Forecast summary Dashboard Count of parts per status per month, parts to be shipped and FG readiness %.
Requirement list Requirement Material requirement lines per part and month (or year), Accounted or Not Accounted.
Excel download Report > Download as Excel The report table exported to a spreadsheet, named after the report.
Report log History ID, name, comment and generation time for every report.
PO and commitment timelines PO Process and Tracking panels Audit trail of status changes with user, date and comment.

7.1.1 How a report is produced

  1. Master data (customers, parts, raw materials, part-RM relations) is read.
  2. Current RM availability (stock and quantity on order) and the production status (finished goods, WIP, FG buffer) are read.
  3. Forecast order quantities per part and month are read.
  4. For each part and month, demand is matched against finished goods, WIP, raw material in stock and open POs, and the result is coloured as described in Section 2.4. Parts that need a special process are flagged brown.
  5. Raw-material requirement lines are written for each part, material and month, so they can be viewed in Requirement and covered by POs.
  6. The report is stored with its name, comment, time and the user who generated it.
Tip: Generate a new report after every stock or forecast import. Use a consistent naming pattern such as "RM Plan 2026-W47" so History is easy to scan.

7.1.2 Reading the report: a worked example

Suppose part Drive Flange is green in November and December, yellow in January, blue in February, brown in March and pink from May. That tells you: the first two months are covered by finished goods, January will come from WIP, material is in stock for February, March needs the special process, and from May the material is on order. If the row later turns red, no PO covers that month and purchasing action is needed.

7.2 Excel import templates

Six sample workbooks are included in Web/samples/ and are also linked from the import panels. Each has a Data sheet (imported) and a Format sheet (reference only). Use .xls or .xlsx, keep the header row exactly as in the sample, and start data on row 2.

7.2.1 Customers

Column Header Rules
A CUSTOMER NAME Required header (case-insensitive). One customer per row.
B Country Text.

Existing customers with the same name are updated.

7.2.2 Parts

Column Header Rules
A PART NAME Required header.
B Unit Price Number.
C Customer Name Must already exist in Customers.
D Special Process Needed YES or NO only. Other values cause the row to be skipped.

7.2.3 RM Master

Column Header Rules
A RM Type RM, ACCESSORIES, 1 or 2.
B Raw Material Name Required header position. Text.
C Unit Price Number.
D Measurement Type WEIGHT, LENGTH or COUNT.
E RM Measurement Unit kg, tonnes, mts, inches or nos.
F Vendor Lead Time (week) Whole number of weeks.
G Description Optional.

Existing materials with the same name are updated.

7.2.4 Part-RM relations

Column Header Rules
A Part Name Must exist in Parts.
B Soft RM Code The raw material name; must exist in RM Master. Header in column B must read SOFT RM CODE.
C Part RM Relation MUL or DIV.
D Part RM Factor Number.
E Special Process RM Code Optional; leave blank if not used.

7.2.5 RM availability

Column Header Rules
A RM Raw material name; must exist in RM Master. Header A must be RM.
B AVAILABLE Quantity in stock. Header B must be AVAILABLE.
C PO Placed Qty Quantity already on order.
Warning: This import replaces all existing RM availability data for your workspace. Complete RM Master before importing.

7.2.6 Forecast data

Column Header Rules
A Part Name Must exist in Parts.
B WIP Qty Non-negative number.
C In Production Qty Non-negative number.
D Finished Goods Qty Non-negative number.
E onward Month headers Each header is a date (Excel date or YYYY-MM-DD). The cells below are the order quantities (integers) for that month.
Last column (ignored) The last column of each row is ignored by the importer.

Rows with any negative value are skipped. The import replaces the existing forecast import data for your workspace.

7.3 Configuration guide for administrators

Settings live in conf/application.yml, but almost every value is read from an environment variable, so you normally never edit the file. The shipped scripts (bin/setenv.sh) set the testing defaults; production uses its own values (Chapter 9). The complete variable list is in Appendix A.

To change Set Notes
HTTP port UI_HTTP_PORT Keep APP_BASE_URL and CORS_ORIGINS consistent with the address users type.
Database host, port, name, user, password DBHOST, DBPORT, MYSQL_DB, MYSQL_USER, MYSQL_PASSWORD MYSQL_DB has no default and must be set.
E-mail (sign-up confirmation, password reset) MAIL_ENABLED, SMTP_HOST/MAIL_HOST, SMTP_PORT/MAIL_PORT, SMTP_USER/MAIL_USERNAME, SMTP_PASSWORD/MAIL_PASSWORD, MAIL_FROM, MAIL_SMTP_AUTH, MAIL_SMTP_STARTTLS, MAIL_SMTP_SSL Typical: port 587 with STARTTLS, or 465 with SSL.
Public address used in e-mailed links APP_BASE_URL Must be the real external URL, for example https://mrp.example.com.
Allowed browser origins CORS_ORIGINS Comma-separated explicit origins. * is refused.
Secure cookies SESSION_COOKIE_SECURE true for HTTPS (mandatory when APP_BASE_URL starts with https://), false for plain HTTP.
Memory JAVA_OPTS Default -Xms256m -Xmx1024m.
Upload, log, schema paths UPLOAD_DIR, LOG_DIR, LOG_FILE, SCHEMA_FILE Defaults are inside the package folder.
Log detail logging.level.* in application.yml Default INFO for the application, WARN for Spring.

Upload limits are 50 MB per file and per request (spring.servlet.multipart). The database connection pool holds up to 30 connections.

8. Testing build: installation and operation

Important: The package supplied is marked as a testing build. Use it only with the dedicated testing database (mrp_software_testing) on a non-production machine. For production, follow Chapter 9 instead.

8.1 Requirements

  • Linux with bash. (Windows scripts exist but the testing guide is written for Linux.)
  • Java 17 or newer on the path (java -version).
  • A reachable MySQL server compatible with Connector/J 8.3.0, a user and an empty database named mrp_software_testing.
  • A modern browser. Node.js and Maven are not required.

8.2 Install and start

  1. Extract the ZIP and enter the folder: unzip MRPSoftware-Testing.zip, then cd MRPSoftware-Testing.
  2. Make the scripts executable: chmod +x bin/*.sh.
  3. Create the empty database (ask your DBA if needed): mysql -u USER -p -e "CREATE DATABASE IF NOT EXISTS mrp_software_testing;".
  4. Set the password in your shell: export MYSQL_PASSWORD="...". Override DBHOST, DBPORT or MYSQL_USER if your server differs.
  5. Optional, to let testers activate accounts without e-mail: export TESTING_ACCOUNT_VERIFICATION_ENABLED=true and export TESTING_ACCOUNT_VERIFICATION_KEY="$(openssl rand -hex 24)" (keep the value).
  6. Start: ./bin/start.sh. You should see a Preflight (TESTING) line, then "Starting Material Plan on port 8090..." and "Started (pid ...)".
  7. Wait a few seconds and browse to http://localhost:8090/.

On first start the application finds no tables and applies conf/schema.sql (look for "Database not initialized" in log/application.log). It also seeds the four roles, the RM types RM and ACCESSORIES and the default permissions.

8.3 Stop and logs

./bin/stop.sh # stops the process named in var/rmplanning.pid
tail -n 100 log/application.log # main log
tail -n 100 log/error.log # JVM output and errors

8.4 Verify a sign-up without e-mail

Because the testing build has e-mail disabled, a new account stays inactive and sign-in answers "Please confirm your email before signing in." With the testing endpoint enabled (Section 8.2, step 5), activate the account from the server:

export TESTING_ACCOUNT_VERIFICATION_KEY="<the key used at start>"
curl -sS -X POST http://localhost:8090/testing/verify-account \
-H "X-Testing-Verification-Key: $TESTING_ACCOUNT_VERIFICATION_KEY" \
--data-urlencode "[email protected]"
HTTP result Meaning
200 success Account activated (or was already active). Sign in.
403 forbidden The key header is missing or wrong.
404 User not found Sign up first.
405 Method Not Allowed The endpoint is not enabled on this instance. Restart with the flag and key.
409 The account is deleted or disabled and cannot be activated this way.
Note: The README refers to a helper script bin/verify-test-account.sh. It is not present in the supplied package (the bin/ folder holds seven scripts and it is not among them), so use the curl command above.

8.5 Testing-build safeguards

  • The application refuses to enable the testing verification endpoint on HTTPS, with mail enabled, without the testing profile, or against the protected databases Raw_Material_Planning and mrp_software_uat.
  • Raw_Material_Planning is blocked unless ALLOW_RAW_MATERIAL_PLANNING_DB=true.
  • Do not run the SQL files in conf/migrations/ without explicit approval (Section 9.14).

9. Production configuration and administration

This chapter turns the supplied package into a secure, supportable production service. Items marked (as shipped) are facts about the supplied files. Items marked (recommended) are good practice for a hosted business application that this manual proposes; adapt them to your standards.

9.1 What changes between testing and production

Topic Testing build (as shipped) Production
Database mrp_software_testing Your own dedicated production database; never a testing or UAT database
Profile SPRING_PROFILES_ACTIVE=testing Anything except testing (for example production)
Testing verification endpoint Optionally enabled Disabled: flag false, no key
Address and cookies HTTP, SESSION_COOKIE_SECURE=false HTTPS, SESSION_COOKIE_SECURE=true, real APP_BASE_URL
E-mail Disabled by the testing guide Enabled with your own SMTP account; required for sign-up and password reset
Database creation README says false, but setenv.sh defaults to true (Section 9.17) false; the DBA creates the database
CORS localhost origins Only your public HTTPS origin
Secrets Shell variables A protected environment file or secret store
Run mode Manual start.sh Service managed by systemd (Linux) or a service wrapper (Windows)
TLS None Terminated at a reverse proxy

9.2 Recommended deployment architecture

Tier Component Network exposure
1 Users' browsers Internet or company network
2 Reverse proxy with TLS certificate (nginx, Apache, IIS ARR, or a cloud load balancer) on port 443 Public or corporate
3 Material Plan application (Spring Boot, port UI_HTTP_PORT, default 8090), single instance Reachable only from the proxy (firewall or loopback)
4 MySQL server (port 3306) Reachable only from the application host
5 Backup storage Private

The application serves plain HTTP and has no TLS settings of its own (as shipped), so HTTPS must be provided in front of it. It is designed as a single instance with a pid file and no clustering support documented (as shipped); plan for one application node and a fast restart rather than load balancing.

9.3 Pre-installation checklist

Item Requirement
Java Java 17 or newer (the package was checked with Java 21). Use a supported, patched JRE or JDK.
MySQL A version compatible with Connector/J 8.3.0 (MySQL 8.x recommended (recommended)). Character set utf8mb4 (recommended).
Host sizing (recommended) 2 CPU cores and 4 GB RAM as a starting point; the JVM heap defaults to 1 GB (-Xmx1024m). Disk for logs (up to 700 MB of rotated logs by default), uploads and backups.
DNS and certificate A host name such as mrp.example.com and a valid TLS certificate.
SMTP account A dedicated mailbox or relay for system e-mail (host, port, user, password, from-address).
Time zone The database connection uses UTC (serverTimezone=UTC (as shipped)). Keep server clocks synchronised (NTP).
Connections The application pool allows 30 connections. Ensure MySQL max_connections comfortably exceeds this plus other clients.

9.4 Provision the production database

  1. Choose a database name, for example mrp_software. Avoid mrp_software_testing, mrp_software_uat and Raw_Material_Planning, which are treated specially by the package.
  2. As a MySQL administrator, create the empty database and a dedicated account (replace the placeholders):
CREATE DATABASE `mrp_software` CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
CREATE USER 'mrp_app'@'10.0.0.%' IDENTIFIED BY '<strong-unique-password>';
GRANT ALL PRIVILEGES ON `mrp_software`.* TO 'mrp_app'@'10.0.0.%';
FLUSH PRIVILEGES;

Notes: restrict the host part to your application server, never use root for the application (recommended), and grant rights on this schema only. The application creates tables and adds columns and indexes on start-up (multi-tenancy migration), so the account needs table-definition rights as well as data rights (as shipped behaviour).

Important: Do not rely on automatic database creation in production. Create the database yourself and keep MYSQL_CREATE_DATABASE=false.

9.5 Install the application (Linux)

  1. Create a service account with no login shell: sudo useradd --system --home /opt/materialplan --shell /usr/sbin/nologin rmplanning.
  2. Copy and extract the package: sudo mkdir -p /opt/materialplan then extract so that /opt/materialplan/bin, conf, lib and Web exist.
  3. Take ownership: sudo chown -R rmplanning:rmplanning /opt/materialplan and sudo chmod +x /opt/materialplan/bin/*.sh.
  4. Remove files that do not belong in production: conf/testing/, and the stale var/rmplanning.pid if present.
  5. Restrict the configuration: sudo chmod 640 /opt/materialplan/conf/application.yml.
  6. Prepare the environment file (next section).

9.6 Production environment file

Put all production settings in one file readable only by the service account, for example /etc/materialplan/materialplan.env, created with chmod 600 and owned by rmplanning. bin/setenv.sh keeps any variable that is already set, so values in this file override the testing defaults (as shipped).

# /etc/materialplan/materialplan.env (chmod 600, owner rmplanning)
# ---- Application ----
UI_HTTP_PORT=8090
APP_BASE_URL=https://mrp.example.com
CORS_ORIGINS=https://mrp.example.com
SESSION_COOKIE_SECURE=true
SPRING_PROFILES_ACTIVE=production
TESTING_ACCOUNT_VERIFICATION_ENABLED=false
ALLOW_RAW_MATERIAL_PLANNING_DB=false
JAVA_OPTS=-Xms512m -Xmx2048m
# ---- Database ----
DBHOST=db.internal.example.com
DBPORT=3306
MYSQL_DB=mrp_software
MYSQL_USER=mrp_app
MYSQL_PASSWORD=<strong-unique-password>
MYSQL_CREATE_DATABASE=false
# ---- E-mail (setenv.sh copies MAIL_* into SMTP_*) ----
MAIL_ENABLED=true
MAIL_HOST=smtp.example.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=<smtp-password>
MAIL_FROM=Material Plan <[email protected]>
MAIL_SMTP_AUTH=true
MAIL_SMTP_STARTTLS=true
MAIL_SMTP_SSL=false
Setting Why it matters in production
SPRING_PROFILES_ACTIVE The shipped setenv.sh defaults this to testing. An empty value is not enough, because the script substitutes testing when the variable is empty. Set an explicit non-testing value.
TESTING_ACCOUNT_VERIFICATION_ENABLED=false The endpoint /testing/verify-account lets anyone holding the shared key activate accounts without e-mail. It must never be on in production. The application also refuses it with HTTPS or mail enabled.
SESSION_COOKIE_SECURE=true Required when APP_BASE_URL is https://. The application will not start with HTTPS and an insecure cookie setting.
CORS_ORIGINS Explicit origin(s) only. The application refuses an empty list and *.
MAIL_* / SMTP_* Sign-up confirmation and password reset depend on mail. With mail enabled but no SMTP user the application warns that sending will likely fail.
MYSQL_CREATE_DATABASE=false The shipped setenv.sh defaults this to true, which contradicts the README. Set it explicitly.
MYSQL_PASSWORD The application's fallback default is a trivial value. Always set a strong password.
JAVA_OPTS Size the heap to the host and the number of concurrent users.
Warning: The supplied conf/application.yml and bin/setenv.sh contain a hard-coded SMTP account and password as fallback defaults. Overriding them with your own MAIL_* values (above) stops the application using them, but you should also remove those defaults from both files and have the exposed credential revoked and rotated by its owner before the package is distributed or stored in a shared repository.

9.7 Reverse proxy and TLS

Terminate HTTPS at a reverse proxy and forward to the application on its local port. The example below (nginx) is a recommended starting point.

server {
listen 443 ssl http2;
server_name mrp.example.com;
ssl_certificate /etc/ssl/certs/mrp.example.com.pem;
ssl_certificate_key /etc/ssl/private/mrp.example.com.key;
ssl_protocols TLSv1.2 TLSv1.3;
client_max_body_size 50m; # matches the 50 MB upload limit
proxy_read_timeout 300s; # allow report generation and large imports
location /testing/ { return 404; } # never expose the testing endpoint
location / {
proxy_pass http://127.0.0.1:8090;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
server { listen 80; server_name mrp.example.com; return 301 https://$host$request_uri; }
  • Add standard security headers at the proxy (HSTS, X-Content-Type-Options) (recommended). The application already adds its own security-headers filter.
  • To keep the application off the network entirely, bind it to the loopback interface by adding -Dserver.address=127.0.0.1 to JAVA_OPTS (a standard Spring Boot property) (recommended), or block port 8090 in the firewall.
  • After the first start, sign in over HTTPS and confirm that the browser shows the padlock and that you remain signed in across pages (this confirms that secure cookies are working).

9.8 Controlling who can sign up

The Create account page and its endpoint are public (as shipped), and every successful sign-up creates a new independent workspace with its own Super-Admin. No setting to disable sign-up was found in this build. For a single-company deployment:

  • Create the first Super-Admin yourself (Section 9.10), then restrict /signup at the reverse proxy to your administrators' addresses, or block it. Keep /verify-email and /reset-password reachable, because e-mailed links use them.
  • Add all colleagues from Settings > Users instead of letting them sign up.
  • Review the tenant list periodically with your DBA to spot unexpected workspaces (table tenant).
# nginx example: allow sign-up only from the head-office network
location = /signup { allow 203.0.113.0/24; deny all; proxy_pass http://127.0.0.1:8090; }

9.9 Run as a managed service

9.9.1 Linux (systemd)

bin/install-service.sh writes a systemd unit named rmplanning that runs start.sh and stop.sh as the user in SVC_USER (default rmplanning) (as shipped).

  1. Run cd /opt/materialplan && sudo SVC_USER=rmplanning ./bin/install-service.sh.
  2. The generated unit does not load an environment file. Add one with a drop-in: sudo systemctl edit rmplanning and enter the lines below.
  3. Reload and start: sudo systemctl daemon-reload && sudo systemctl enable --now rmplanning.
  4. Check: systemctl status rmplanning and tail -n 50 /opt/materialplan/log/application.log.
[Service]
EnvironmentFile=/etc/materialplan/materialplan.env
TimeoutStartSec=120

Because the unit is a forking service with a pid file, always use systemctl stop|start|restart rmplanning rather than killing the process.

9.9.2 Windows

install-service.bat does not install a service in this release; it only prints guidance to use NSSM or sc.exe (as shipped). start.bat also does not read setenv.sh, so production values must be set as machine-level environment variables, and the application's built-in defaults apply to anything left unset: port 8085, APP_BASE_URL and CORS origin http://localhost:8085, database password fallback, and mail enabled.

  1. Set system environment variables for every value in Section 9.6 (including MYSQL_DB, MYSQL_PASSWORD, APP_BASE_URL, CORS_ORIGINS, SESSION_COOKIE_SECURE, MAIL_*/SMTP_*, UI_HTTP_PORT).
  2. Because start.bat launches Java in the background and exits (which service wrappers read as a stopped service), register Java directly with NSSM (recommended): application java.exe; arguments -Xms256m -Xmx1024m -cp "C:\MaterialPlan\lib\*" com.bevywise.mrp.RmPlanningApplication --spring.config.additional-location=file:C:/MaterialPlan/conf/application.yml; startup directory C:\MaterialPlan.
  3. Also set RMPLANNING_WEB_DIR=C:\MaterialPlan\Web, UPLOAD_DIR=C:\MaterialPlan\data\upload, SCHEMA_FILE=C:\MaterialPlan\conf\schema.sql and LOG_DIR=C:\MaterialPlan\log, as start.bat does.
  4. Put IIS (Application Request Routing) or another proxy in front for HTTPS.

9.10 First start and verification

  1. Start the service and watch log/application.log. A healthy production start contains a line similar to: "Startup security checks passed (cookieSecure=true, allowRawMaterialPlanningDb=false, mailEnabled=true, testingAccountVerification=false)".
  2. On the very first start against an empty database you will also see the schema being applied ("Database not initialized"), and seeding of roles and permissions.
  3. Browse to https://mrp.example.com/. You should see the Sign in page.
  4. Select Create an account, sign up as the first Super-Admin using a real mailbox, and open the confirmation e-mail. The link must point to your https address (it is built from APP_BASE_URL).
  5. Sign in, open Settings > Company and complete the company profile.
  6. Restrict /signup if required (Section 9.8) and add users (SOP-09).
  7. Check that https://mrp.example.com/testing/verify-account does not work (expect 404 or 405).
Note: A newly activated account is filled with demo data. Use Clear demo data before real use (SOP-08).

9.11 Start-up security checks

The application validates its own configuration at start-up and stops with a clear message when it is unsafe. These are the checks found in the package:

Check Result when violated
HTTPS address with insecure cookies (APP_BASE_URL https:// and SESSION_COOKIE_SECURE=false) Start-up fails. Set SESSION_COOKIE_SECURE=true.
Protected databases (Raw_Material_Planning, mrp_software_uat) Blocked or warned unless explicitly allowed; do not point production at them.
CORS_ORIGINS empty or containing * Start-up fails: "Set explicit browser origins (e.g. https://mrp.example.com)".
MAIL_ENABLED=true with empty SMTP_USER Warning: outbound mail will likely fail. Set SMTP values or disable mail.
TESTING_ACCOUNT_VERIFICATION_ENABLED=true with HTTPS, mail on, a non-testing profile or a protected database Start-up fails: "is not allowed here".
Testing verification enabled where permitted A prominent warning that accounts can be activated without e-mail. Never use in production.
Database unreachable on first start Refuses to start without a schema: "Cannot connect to the configured database".

9.12 Production go-live checklist

Done Item
[ ] Dedicated production database and least-privilege account created; password stored securely
[ ] MYSQL_CREATE_DATABASE=false; MYSQL_DB is the production database
[ ] SPRING_PROFILES_ACTIVE is not testing; testing verification flag false and no key set
[ ] HTTPS in place with a valid certificate; HTTP redirects to HTTPS
[ ] APP_BASE_URL, CORS_ORIGINS and SESSION_COOKIE_SECURE match the public https address
[ ] SMTP configured; test sign-up and password-reset e-mails received
[ ] Hard-coded SMTP defaults removed from application.yml and setenv.sh; exposed credential revoked
[ ] Port 8090 and 3306 not reachable from outside; only 443 (and 80 for redirect) open
[ ] /testing/ blocked at the proxy; /signup restricted if single-company
[ ] Service installed, enabled at boot and restarts on failure; reboot test passed
[ ] Environment file permissions 600; configuration files not world-readable
[ ] Backups scheduled and a restore tested (Section 9.13)
[ ] Log rotation understood; disk space monitored; uptime check configured
[ ] First Super-Admin created, company profile completed, demo data cleared, users added
[ ] End-user training completed using Chapters 4 to 6

9.13 Backup and restore

What to back up: the MySQL database (all business data and users), the conf/ folder (your settings), and data/upload/. The lib/ and Web/ folders can be re-created from the original package. Back up before every upgrade (recommended).

# nightly logical backup (cron, as a user with read access)
mysqldump --single-transaction --routines --triggers \
-h db.internal.example.com -u mrp_backup -p mrp_software | gzip > /backup/mrp_software_$(date +%F).sql.gz
# restore into an empty database
gunzip -c /backup/mrp_software_2026-11-19.sql.gz | mysql -h db.internal.example.com -u root -p mrp_software
  • Keep at least 14 daily and 12 monthly copies, stored off the application host.
  • Test a restore on a separate server at least quarterly. An untested backup is not a backup.
  • Never restore a production dump into a testing system, or the reverse.

9.14 Upgrades, migrations and rollback

9.14.1 Upgrading to a new package

  1. Announce downtime and take a database and conf/ backup.
  2. Stop the service: sudo systemctl stop rmplanning.
  3. Unpack the new package to a temporary folder. Replace lib/ and Web/ in the installation with the new ones. Keep your conf/application.yml, data/, log/ and the environment file; compare the new application.yml with yours for added settings.
  4. Start the service and read log/application.log. The application adds any missing columns or indexes automatically on start-up.
  5. Smoke-test: sign in, open the Dashboard, open a report, create and cancel a test PO window.
  6. To roll back, stop the service, restore the previous lib/ and Web/, and restore the database backup if the schema changed.

9.14.2 The SQL files in `conf/migrations/`

Two prepared scripts are supplied. They are not run automatically and are marked "do not execute" without an approved maintenance window (as shipped).

File Purpose Caution
001_global_email_unique.sql Makes user e-mail globally unique at database level (the application already blocks duplicates). Fails if any e-mail exists in more than one workspace. Run the duplicate check in the file first; do not merge accounts automatically; the application must not be creating users meanwhile.
002_mrp_operations_permission_seed.sql Adds the mrp_operations permission rows for the four roles on existing databases. The application already verifies and inserts missing rows at start-up, so this is only needed if the log warns that Admin or Uploader operations may be refused (HTTP 403).

9.15 Monitoring, logs and maintenance

Log Location Rotation (as shipped)
Application log log/application.log Daily and every 10 MB; kept 30 days; total cap 500 MB; archived as log/archived/application.<date>.<n>.log.gz
Error log log/error.log ERROR level and above; kept 90 days; total cap 200 MB
Process id var/rmplanning.pid Removed by stop.sh
  • Uptime check: request https://mrp.example.com/ and expect HTTP 200 with the sign-in page. No separate health endpoint is provided in this build (as shipped).
  • Alert on new ERROR lines in error.log, the process being down, disk usage above 80 %, and MySQL connection errors.
  • Capacity: watch JVM memory and the connection pool (log source dbpool); raise -Xmx before the heap is exhausted.
  • Sessions: users are signed in through a server session. Plan for users to sign in again after an application restart.
  • Housekeeping: review the Users list quarterly and remove access for leavers; apply Java, OS and MySQL security patches.

9.16 Data protection notes

  • Passwords are stored as BCrypt hashes. Reset links and confirmation links are random tokens with an expiry.
  • State-changing requests are protected by a CSRF token; session cookies are HTTP-only and SameSite=Lax, and Secure under HTTPS.
  • Each workspace's data is separated by a tenant identifier and filtered server-side.
  • Uploaded Excel files are read and processed; confirm with your IT policy whether copies in data/upload/ should be purged on a schedule.

9.17 Package observations to resolve before production

While preparing this manual the following inconsistencies were found in the supplied files. None stops the application from running, but each should be handled before a production roll-out.

# Observation Recommended action
1 conf/application.yml and bin/setenv.sh embed a real-looking SMTP account and password as defaults. Remove the defaults, revoke and rotate the credential, supply SMTP values only through the environment.
2 setenv.sh forces MAIL_ENABLED=true, while the README says mail is disabled for testing. Treat setenv.sh as authoritative; for testing without mail, edit the script or use the example in conf/testing/.
3 setenv.sh defaults MYSQL_CREATE_DATABASE to true, while the README and the yml default say false. Set it to false explicitly in production.
4 setenv.sh defaults MYSQL_DB to mrp_software_testing and the profile to testing. Always set both explicitly in the production environment file.
5 The README refers to bin/verify-test-account.sh, which is not in the package. Use the curl command in Section 8.4, or restore the script.
6 The README says a new sign-up becomes "Admin"; the code assigns role 1 (Super-Admin) of the new workspace. This manual follows the code.
7 Sign-up is open to anyone who can reach the site and no switch to disable it was found. Restrict at the proxy (Section 9.8).
8 install-service.sh creates a unit with no environment file; install-service.bat is a placeholder. Use the drop-in and NSSM approaches in Section 9.9.
9 The application's fallback database password is a trivial value. Always set MYSQL_PASSWORD.

10. Troubleshooting and FAQs

10.1 How to troubleshoot

  1. Note exactly what you did and the message shown (a screenshot helps).
  2. Check the table in this chapter for that message or symptom.
  3. If you are an administrator, read the end of log/application.log and log/error.log.
  4. Escalate with: the page and role, the steps, the message, the time, the build (from TESTING_PACKAGE_MANIFEST.txt or the package name), the start command, and log excerpts. Never send passwords or production data.

10.2 Sign-in and account problems

Symptom or message Likely cause What to do
Auth Failed: Incorrect username or password Wrong credentials Retype; use Forgot username or password?
Please confirm your email before signing in. Account inactive; link not yet used Open the confirmation e-mail. Testing build: use the verification command (Section 8.4). Production: check SMTP and the spam folder; the administrator can check mail settings.
Verification link has expired. Please sign up again. Link older than its validity Sign up again.
Invalid or expired verification link Link already used or altered Try signing in; otherwise sign up again.
Username already exists E-mail already used in any workspace Use a different e-mail or sign in.
Password must be at least 6 characters Password too short Choose a longer password.
No reset e-mail arrives Mail disabled or SMTP misconfigured; wrong address Check spam; administrator verifies MAIL_* settings and the log.
Reset link says missing or invalid Link broken, used or expired Request a new link from Forgot password.
Signed out unexpectedly, or pages show errors after a while Session ended (timeout or restart) Sign in again.
Settings menu or Users page is missing Your role does not allow it See Section 3.3; ask an Admin.

10.3 Data and screen problems

Symptom or message Likely cause What to do
Dashboard: "No dashboard data available. Generate a report from the Generate tab." No report generated yet Complete master data, import stock and forecast, generate a report.
Report: "No report available yet. Import forecast data and generate a report from the Generate tab." Same Same.
Report page lists unexpected or few parts Forecast file lacks those parts or part names differ Check names match the Parts master exactly; re-import the complete forecast; regenerate.
Generate: "Master data is missing for this account: ..." One of Customers, Parts, RM Master or Part-RM is empty Add or import the listed data (SOP-02).
Requirement: "No requirements found" Filters exclude everything, or no report was generated Set Status to All and RM to All; generate a report.
Create PO: Part Name list is empty No outstanding requirement for that material Choose a material that appears as Not Accounted in Requirement.
Add Commitment: "No placed POs" No PO has reached PO_Placed Update the PO status to PO_Placed with a PO number first.
Colours look wrong or all red No POs placed, or stale stock/forecast Re-import current RM availability and forecast; regenerate; raise POs.
Numbers on Dashboard differ from last week Dashboard shows the latest report and live follow-up counts Check History for newer reports.
Cannot find a customer in the Part form Customer not created Add the customer first.
Page shows "Failed to load ..." Server or database problem, or session ended Refresh; sign in again; if it persists inform your administrator.

10.4 Import problems

Symptom or message Likely cause What to do
Please upload an Excel file (.xls or .xlsx). Wrong file type (for example CSV) Save as .xlsx and retry.
Import failed. Please log in again or check the file format. Session expired, wrong headers, wrong sheet, or invalid data Compare with the sample; keep data on the Data sheet; check required headers (Section 7.2).
Rows missing after import Special Process not YES/NO; negative quantities; unknown part, customer or material names Correct the values and import again.
Part import imports nothing Customers not yet loaded Import customers first.
Relation import imports nothing Parts or materials not yet loaded Import parts and RM master first.
Stock disappeared after re-import The RM availability import replaces all data Always upload the complete current file.
Large file fails File above 50 MB (or proxy limit) Split data; production proxy needs client_max_body_size 50m.

10.5 PO and tracking validation messages

Message Meaning
Please fill the Correct Follow Up Date The follow-up date is empty or in the past.
Please fill the PO Number Status PO_Placed needs a PO number.
Please fill the Vendor Committed Date / Receiving Date A required date is empty.
Please fill the Correct Vendor Committed Date / Receiving Date The date is in the past.
Vendor Committed Date must be on or before Receiving Date The dates are in the wrong order.
Select a placed PO No PO chosen in Add Commitment.
Please fill the Follow Up Date Update Order needs a follow-up date.
Update failed / Failed to create PO / Failed to add commitment The server rejected the request; check the session and permission, then the log.
HTTP 403 forbidden (in log or console) Your role lacks the permission, or the session expired.

10.6 Installation and start-up problems

Symptom or message Likely cause What to do
ERROR: MYSQL_DB is not set Environment not loaded Start through bin/start.sh with the environment file loaded.
Unknown database / connection refused Database missing or MySQL down Create the empty database; check host, port and firewall.
Access denied for user Wrong credentials or host restriction Check MYSQL_USER, MYSQL_PASSWORD and the account's allowed host.
Port already in use Another process on the port Free the port or change UI_HTTP_PORT and update APP_BASE_URL and CORS_ORIGINS.
Material Plan is already running Pid file points to a live process Run stop.sh; remove a stale var/rmplanning.pid.
No JARs in .../lib Incomplete extraction Re-extract the package.
Blank page or 404 on / Web/index.html missing Re-extract; confirm the file exists.
Startup fails mentioning HTTPS and cookies https:// APP_BASE_URL with SESSION_COOKIE_SECURE=false Set SESSION_COOKIE_SECURE=true.
Startup fails mentioning CORS_ORIGINS Empty list or * Set explicit https origin(s).
Startup fails: TESTING_ACCOUNT_VERIFICATION_ENABLED=true is not allowed here Testing flag set in a production-shaped setup Set the flag to false and clear the key.
Warning: MAIL_ENABLED=true but SMTP_USER is empty Mail enabled without SMTP settings Provide SMTP settings or disable mail.
Refuses Raw_Material_Planning Protected database name Use a different database, or set ALLOW_RAW_MATERIAL_PLANNING_DB=true only with approval.
Log: "Admin/Uploader ops may 403" Missing mrp_operations permission rows Check the start-up log lines about permissions; apply 002_mrp_operations_permission_seed.sql with approval.
Windows: wrong port or settings start.bat ignores setenv.sh Set machine environment variables (Section 9.9.2).
After upgrade: errors about columns Migration incomplete Read the "Could not add tenant_id" lines in the log; fix the database privileges (ALTER/INDEX) and restart.

10.7 Production-specific problems

Symptom Likely cause What to do
Browser shows a certificate warning Wrong or expired certificate at the proxy Install a valid certificate for the host name.
Sign-in appears to succeed but you are returned to the sign-in page Secure cookie not accepted (HTTP access with SESSION_COOKIE_SECURE=true), or proxy dropping cookies Access only through https; confirm the proxy passes cookies and the Host header.
E-mailed links point to localhost or http APP_BASE_URL wrong Set it to the public https address and restart.
Uploads fail only in production Proxy body-size or timeout limit Raise client_max_body_size (50 MB) and proxy_read_timeout.
Browser console shows CORS errors CORS_ORIGINS does not match the address used Make it exactly the origin users type, including scheme and port.
Slow pages or out-of-memory errors Heap too small or database slow Raise -Xmx; check MySQL load and indexes; look at error.log.
Application does not start after reboot Service not enabled, database not up yet, or environment file unreadable systemctl enable rmplanning; check order and file permissions.

10.8 Frequently asked questions

Q. Do I need to install Node.js or Maven?

No. The backend and the pre-built interface are packaged together. You need Java 17 or newer and MySQL.

Q. Why can't I sign in after signing up?

The account stays inactive until the e-mail is confirmed. In the testing build, use the verification command (Section 8.4).

Q. Who becomes Super-Admin?

The person who signs up through the Create account page, for their own new workspace.

Q. Can I have more than one Super-Admin?

Users added through Settings > Users can be Admin, Uploader or Collaborator. Super-Admin is created only by sign-up.

Q. Can two companies share one installation?

Yes. Each sign-up creates an isolated workspace, and users and data are filtered by workspace.

Q. Can the same e-mail be used in two workspaces?

No. E-mail addresses must be unique across the whole system.

Q. What is the difference between Requirement and PO Process?

Requirement shows what material is needed and whether it is covered. PO Process is where you create and progress the purchase orders that cover it.

Q. What makes a requirement "Accounted"?

Creating a PO for it. The ordered quantity is allocated to the earliest months first; a month fully covered becomes Accounted, and a partly covered one keeps the remainder as Not Accounted.

Q. Why are rows red or green?

Red means the follow-up date has passed; green means it is today; black means a future date.

Q. Why is the Create PO button missing?

Collaborators cannot change data.

Q. What does a brown cell mean?

The part needs a special process such as heat treatment (set on the part, optionally with a special-process raw material).

Q. What do MUL and DIV mean?

MUL: material = part quantity x factor. DIV: material = part quantity / factor.

Q. Does importing overwrite my data?

The RM availability and forecast imports replace the previous data. Customer and raw-material imports update records with the same name and add new ones.

Q. Why must I import in a certain order?

Parts refer to customers, relations refer to parts and materials, and availability refers to materials.

Q. How do I delete or edit master data?

This build offers Add and Import; editing by re-importing a record with the same name updates it for customers and raw materials. Deleting master data is limited by role (Super-Admin and Admin) and is not exposed as a button in this interface.

Q. How do I remove the demo data?

Select Clear demo data on the banner (Super-Admin or Admin).

Q. Where is my report from last month?

Open History to see the list. Dashboard and Report always show the latest report.

Q. Can I export the report?

Yes, Download as Excel on the Report page.

Q. I changed forecast numbers; why didn't the Dashboard change?

Import the file and generate a new report; the Dashboard reads the latest generated report.

Q. Is it safe to run the testing package in production?

No. Follow Chapter 9: dedicated database, HTTPS, mail, non-testing profile and the checklist in Section 9.12.

Q. Which browser should I use?

A current version of Chrome, Edge, Firefox or Safari.

Q. Whom do I contact for help?

Your internal administrator first. They escalate to the development team with the information listed in Section 10.1.

Appendix A. Environment variable reference

Values come from conf/application.yml. "Script default" is what bin/setenv.sh exports when the variable is unset.

Variable Application default Script default (setenv.sh) Purpose
UI_HTTP_PORT 8085 8090 HTTP listen port
APP_BASE_URL http://localhost:8085 http://localhost:8090 Public base address used in e-mailed links
CORS_ORIGINS http://localhost:8085 http://localhost:8090,http://localhost:5173 Allowed browser origins
SESSION_COOKIE_SECURE false false Secure flag on the session cookie
DBHOST 127.0.0.1 127.0.0.1 MySQL host
DBPORT 3306 3306 MySQL port
MYSQL_DB (none, required) mrp_software_testing Database name
MYSQL_USER root root Database user
MYSQL_PASSWORD (weak fallback) (weak fallback) Database password
MYSQL_CREATE_DATABASE false true Create the database if missing (never for protected names)
ALLOW_RAW_MATERIAL_PLANNING_DB false false Permit the protected database name Raw_Material_Planning
MAIL_ENABLED true forced true Send e-mail
SMTP_HOST / MAIL_HOST smtp.zoho.com smtp.zoho.com SMTP server
SMTP_PORT / MAIL_PORT 587 587 SMTP port
SMTP_USER / MAIL_USERNAME (embedded default) (embedded default) SMTP user: always override
SMTP_PASSWORD / MAIL_PASSWORD (embedded default) (embedded default) SMTP password: always override
MAIL_FROM SMTP user SMTP user From-address of system mail
MAIL_SMTP_AUTH, MAIL_SMTP_STARTTLS, MAIL_SMTP_SSL true, true, false true, true, false SMTP security options
SPRING_PROFILES_ACTIVE (none) testing Spring profile
TESTING_ACCOUNT_VERIFICATION_ENABLED false false Testing-only account activation endpoint
TESTING_ACCOUNT_VERIFICATION_KEY (empty) (empty) Shared key (16+ characters) for that endpoint
UPLOAD_DIR data/upload <home>/data/upload Upload folder
LOG_DIR, LOG_FILE log, log/application.log <home>/log Log folder and main log file
SCHEMA_FILE conf/schema.sql <home>/conf/schema.sql Schema applied on first start
RMPLANNING_WEB_DIR (empty) <home>/Web Folder of the built interface
PID_FILE - <home>/var/rmplanning.pid Process id file
JAVA, JAVA_OPTS - java, -Xms256m -Xmx1024m Java command and options
SERVICE_NAME, SVC_USER - rmplanning, rmplanning Used by install-service.sh

Appendix B. Status and value glossary

Group Values Where used
Requirement status NOT_ACCOUNTED, ACCOUNTED Requirement, Dashboard (Not Accounted)
PO status RFQ_Initialization_Pending, RFQ_Initiated, RFQ_Floated, PR_Raised, PR_Follow_up, PO_Placed (the database also defines RFQ_Initiation_Escalation and NONE, which the interface does not offer) PO Process
Commitment status VENDOR_FOLLOWUP, SHIPMENT_FOLLOWUP, RECEIVED Tracking
Alarm values defined in the database Status OPEN, ACTION_TAKEN, CLOSED; type TIME_TO_ORDER, COMMITTED_NOT_DELIVERED Defined in the schema; no alarm screen is present in this interface
Measurement type WEIGHT, LENGTH, COUNT RM Master
Measurement unit kg, tonnes, mts, inches, nos RM Master
RM type RM, ACCESSORIES RM Master
Relation MUL (multiplication), DIV (division) Part-RM
User status active, inactive, delete Users (deleted users are not listed)
Roles Super-Admin (1), Admin (2), Uploader (3), Collaborator (4) Everywhere

Appendix C. Database tables

The schema (conf/schema.sql) is applied automatically. Every business table also carries a tenant_id column that is added at first start.

Area Tables
Workspace and access tenant, company_details, user, roles, user_vs_roles, permissions
Master data customer_details, part_master, rmtype, rm_master, part_rm_relation
Stock and forecast parts_production_status, parts_order_status, rm_availability_details
Reports and requirements reports_table, rm_monthly_requiements
Purchasing rm_po_details, po_vs_mntly_reqd_relation, rm_po_tracking
Vendor commitments rm_commitment_details, rm_acutal_commits, rm_commit_track
Alarms (schema only) alarms, alarm_history

Table and column names are reproduced exactly as in the schema file, including its spelling.