6. Inbounds Purging
Table of Contents
Inbound Purging Workflow
1. Purpose
To automatically remove (purge) old inbound receipt and invoice records from the system—both those tracked in history and those already invoiced—once they exceed configured retention periods. This helps keep the database lean and ensures regulatory or business-driven data-retention policies are enforced.
2. Step-by-Step Process
-
Page Connector “6”
- Indicates continuation from a preceding workflow segment.
-
HF.99: Set Retention Period for History Receipts & Invoices (Mandatory Setup)
- Define how long to keep historical receipt and invoice records (e.g. 2 years) before they become eligible for deletion.
-
WP.96: Set Retention Period for Invoiced Receipts (Mandatory Setup)
- Specify the retention threshold for receipts that have already been invoiced but remain in “active” status (e.g. 1 year).
- Decision: “Receipts Tracked in History (HF.01/05)?”
- 🔷 Check whether the inbound receipts to be purged are stored in the historical tables (e.g. HF.01 or HF.05).
- Yes → Proceed to DS.22.
- No → Skip to the next decision (step 7).
-
DS.22: Determine if History Receipts & Invoices Are Older Than Retention (Process)
- Run the purge-job logic that compares each historical receipt/invoice date against the HF.99 threshold.
-
DS.23: Delete History Receipts & Invoices (Output)
- Automatically remove any historical records exceeding the retention period.
Note: Purged items do not appear on this report.
- Decision: “Receipts Invoiced & Register Printed?”
- 🔷 For the remaining (non-historical) receipts, check if they have been invoiced and their invoice register has already been printed.
- Yes → Proceed to IP.94.
- No → Loop back (do not purge these records).
-
IP.94: Delete Receipts and Print Report of Deleted Receipts (Output)
- Execute the final deletion of all qualifying invoiced receipts.
- Generate and print (or archive) a “Purge Report” listing each receipt deleted in this run.
-
End
- The inbound purge routine completes.
3. Outputs & Artifacts
History Purge Report (internal audit): records of historical receipts/invoices deleted.
Invoiced-Receipt Purge Report: printed or PDF report listing all deleted, invoiced receipts.
System Logs: timestamps, user/process ID, and counts of purged records for audit trails.
4. Operational Notes
Configuration First: Always set HF.99 and WP.96 retention periods before running the purge job.
Safety Check: Records not meeting both “tracked in history” or “invoiced & printed” conditions are never purged.
Auditability: Retain purge-reports and system logs for at least one full audit cycle beyond your longest retention period.
Scheduling: Automate this workflow as a recurring batch job (e.g. monthly) outside of business hours to minimize performance impact.
5. Legend & Roles
Symbol / Color | Meaning |
---|---|
🟢 Green oval | Start |
🟨 Yellow rectangle | Mandatory Setup (configuration steps) |
🟦 Cyan rectangle | Process (automated job or routine) |
🔷 Diamond | Decision |
🟧 Orange rectangle | Output / Document |
◽ Page connector (6) | Flows from previous workflow |
🔴 Red oval | End |
END OF INBOUND PROCESS