# List Item Definitions

This directory contains JSON files that define list items for NetSuite lists.

## File Format

Each file should be named `{listScriptId}.json` and contain a simple object where:
- **Key** = NetSuite refid (internal ID)
- **Value** = Display value

## Example: `workorderstatus.json`

```json
{
    "A": "Planned",
    "B": "In Progress",
    "C": "Completed",
    "D": "Closed"
}
```

## Usage

When `RecordTypeFieldsService::mappedLists()` is called:
1. It checks if each list has items in the database
2. If a list is empty, it looks for a definition file here
3. If found, it automatically seeds the list items
4. If not found, it checks built-in definitions in `RecordTypeFieldsService::getBuiltInListDefinitions()`

## Built-in Definitions

Common lists are defined directly in the code at `RecordTypeFieldsService::getBuiltInListDefinitions()`.

To add a new list, either:
1. Create a JSON file here (preferred for record-specific lists)
2. Add to the built-in definitions (for common cross-record lists)

## Example Files to Create

- `mfgoperationtaskstatus.json` - Manufacturing operation task statuses
- `workorderpriority.json` - Work order priority levels
- `bomrevisionstatus.json` - BOM revision statuses
