Transaction Types
The nine stock entry transaction types used across Neriyam.
Transaction Types#
Every stock movement in Neriyam is a stock entry with a specific transaction type. The transaction type determines which form you see, what fields are required, whether ownership is editable, and which permissions gate the action.
This page is the reference catalogue. For how a specific entry works, follow the link to its module page.
The nine transaction types#
| Code | Name | Module (sidebar) | Direction | Docs |
|---|---|---|---|---|
OPN | Opening Stock | Inventory | Inward only | Opening Stock |
ADJ | Stock Adjustment | Inventory | Either (mixed) | Stock Adjustment |
TRF | Stock Transfer | Inventory | Paired (from → to) | Stock Transfer |
PPR | Goods Receipt (Purchase Receipt) | Purchase | Inward | Goods Receipt |
PPT | Purchase Return | Purchase | Outward | Purchase Returns |
SPD | Sales Delivery | Sales | Outward | Sales Delivery Notes |
SPT | Sales Return | Sales | Inward | Sales Returns |
MFG | Production Entry | Manufacturing | Mixed (input + output) | Production Entry |
SCR | Scrap Entry | Manufacturing | Outward | Scrap Entry |
Do not look for transaction codes STF, SIS, SIR, or PRD — those names appear in some older design documents but the actual codes in the app are TRF, SPD, SPT, and MFG respectively.
Line mode#
Each transaction type has a line mode that defines how quantities work on its lines:
| Line mode | Behaviour | Used by |
|---|---|---|
POSITIVE | Inward only; qty must be positive | OPN, PPR, SPT |
NEGATIVE | Outward only; qty must be positive, posted as negative | PPT, SPD, SCR |
MIXED | Either direction; positive adds, negative reduces | ADJ, MFG |
PAIRED | Each line has From Warehouse + To Warehouse | TRF |
Ownership policy#
Every transaction type in Neriyam supports both ownership types — own stock and customer-owned stock can be entered on every kind of stock entry. This is necessary because customer free-issue material may flow through every stage of the workflow.
| Policy | Meaning | Used by |
|---|---|---|
OWN | Own stock only; ownership field hidden | (none) |
CUSTOMER | Customer stock only; customer field required | (none) |
BOTH | Own or customer; user picks per entry, can override per line | OPN, ADJ, TRF, PPR, PPT, SPD, SPT, MFG, SCR |
How the picker is presented varies by transaction type — see Stock Ownership › Which transactions allow which ownership for the full breakdown.
What each type does to the stock ledger#
Inward (positive quantity on ledger)#
OPN— opens a balance; updates moving average with the rate you enterPPR— receives stock against a PO; blends the PO rate into the moving averageSPT— returns stock from a customer; flows back at the rate it left at (from the SDN)- Positive
ADJ— adds stock at the current moving-average (or at a rate, if zero balance) - Output lines of
MFG— adds produced stock; rate derived from consumed inputs
Outward (negative quantity on ledger)#
SPD— ships stock to a customer; consumes at current moving-averagePPT— returns stock to a supplier; consumes at current moving-averageSCR— writes off stock; consumes at current moving-average- Negative
ADJ— reduces stock; consumes at current moving-average - Input lines of
MFG— consumes stock at current moving-average; value flows to output lines
Paired (two entries per line)#
TRF— posts one outward at the source warehouse and one inward at the destination, both at the source's current moving-average
See Stock valuation for the full cost arithmetic.
Lifecycle — all stock entries#
All nine types share the same lifecycle:
| Code | Label | Behaviour |
|---|---|---|
D | Draft | Editable; rates blank until submit |
S | Submitted | Posted to ledger; read-only |
C | Cancelled | Reversal posted; original preserved |
Stock entries do NOT go through Pending Approval. Submitting a stock entry requires the MANAGE_* permission for its module.
Permissions — quick reference#
| Type | Manage permission | Cancel permission |
|---|---|---|
| OPN | INVENTORY.MANAGE_STOCK_OPERATIONS | INVENTORY.CANCEL_STOCK_ENTRIES |
| ADJ | INVENTORY.MANAGE_STOCK_OPERATIONS | INVENTORY.CANCEL_STOCK_ENTRIES |
| TRF | INVENTORY.MANAGE_STOCK_OPERATIONS | INVENTORY.CANCEL_STOCK_ENTRIES |
| PPR | PURCHASE.MANAGE_GRN | INVENTORY.CANCEL_STOCK_ENTRIES |
| PPT | PURCHASE.MANAGE_PURCHASE_RETURNS | INVENTORY.CANCEL_STOCK_ENTRIES |
| SPD | SALES.MANAGE_SALES_DELIVERY | INVENTORY.CANCEL_STOCK_ENTRIES |
| SPT | SALES.MANAGE_SALES_RETURNS | INVENTORY.CANCEL_STOCK_ENTRIES |
| MFG | MANUFACTURING.MANAGE_PRODUCTION | INVENTORY.CANCEL_STOCK_ENTRIES |
| SCR | MANUFACTURING.MANAGE_PRODUCTION | INVENTORY.CANCEL_STOCK_ENTRIES |
Where to find them in the sidebar#
Inventory
├─ Opening Stock → OPN
├─ Stock Adjustment → ADJ
└─ Stock Transfer → TRF
Purchase
├─ Goods Receipt → PPR
└─ Purchase Return → PPT
Sales
├─ Sales Delivery → SPD
└─ Sales Return → SPT
Manufacturing
├─ Production Entry → MFG
└─ Scrap Entry → SCR
Related#
- Stock Ledger — filter by Document column to see entries of a specific type
- Stock valuation — how each type affects cost
- Stock ownership — how ownership per type works
- Status Reference — the lifecycle codes
Last updated