Skip to content

ACTFAS · ERP

Prison Commissary.

Built to handle the complexities of commissary in the prison system, ACTFAS was also a small ERP system, with many integrations for allowing inmates to enter orders. San Bernardino and Santa Ana, California were two of our largest facilities. Orders came in by bubble sheet, phone, or manual entry.

Too serious. Let's make this a game my son can play. Look below. At cutoff each line is checked against court orders, discipline, medical diets, the weekly limit, the balance and stock. Then it’s charged to the trust account or recorded as indigent, picked at cost and packed in a brown paper bag. Last step: throw each bag to the right person as the unit walks by.

🤝 My son wanted an activity here for kids

A fictional facility. Every person, booking number, court case, price and rule is made up for the demo. Written in strict TypeScript; runs entirely in your browser.

ACTFAS · The real system

What the real system did.

The commissary ERP I built was called ACTFAS. It handled everything from an inmate’s first deposit to the bag delivered to their cell.

Track

Inmate funds

Intake inmate funds and track them for use in commissary.

Track

Products

Let staff track what can be sold to inmates.

Track

Inventory

Track how many of each product are in stock.

Track

Orders

Track who ordered what, and charge only for what was delivered.

Track

Receiving orders

By telephone, OMR bubble sheet or manual entry, so staff and inmates can enter and edit orders.

Track

Restrictions

Make sure banned items are never sold to an inmate.

Track

Court orders

Track and comply with court orders.

Track

Indigent products

Give some products to inmates who can’t afford anything.

Inmate funds

From intake to release

Intake of an inmate into custody usually began with a deposit of funds onto the inmate’s balance. Those funds were then available for commissary, and each order was deducted from the balance. Visitors could deposit more funds. On release or transfer, the system let staff remove the funds from the inmate’s account.

Inventory

Boxes, items and assemblies

Many products were for sale, usually small, inexpensive food items. The system understood box quantities: buying a box of candy bars raised the sellable quantity by 24. It also handled assemblies, where one product is part of another. I later built inventory control systems using the lessons learned in ACTFAS.

Orders

Charged for what was delivered

Every order deducted from both the inventory and the inmate’s funds. Orders also handled indigent items, court orders and custom rules, which often decided what an indigent inmate received automatically.

Receiving orders

Paper, bubbles and phones

  • ▸ Handwritten lists: a terrible idea. Hard to read.
  • ▸ OMR scanner: I developed an Optical Mark Recognition (“bubble sheet”) scanner program. Inmates simply filled in the bubbles. It worked well.
  • ▸ Telephone: I developed a phone ordering system so inmates could place orders from a standard phone. It worked well.

Accounting

Built so the money always adds up

Deposits, orders, refunds and releases all ran through database transactions, triggers and stored procedures, so an inmate’s balance, the inventory and the books could never disagree.

Scope & integrations

A massive project

As senior software engineer I:

  • ▸ Built the application UI
  • ▸ Engineered the database tables, stored procedures and triggers
  • ▸ Built the phone ordering system
  • ▸ Built the OMR scanner application
  • ▸ Built the mainframe and other integrations
  • ▸ Provided support and updates