Neriyam
Open App

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#

CodeNameModule (sidebar)DirectionDocs
OPNOpening StockInventoryInward onlyOpening Stock
ADJStock AdjustmentInventoryEither (mixed)Stock Adjustment
TRFStock TransferInventoryPaired (from → to)Stock Transfer
PPRGoods Receipt (Purchase Receipt)PurchaseInwardGoods Receipt
PPTPurchase ReturnPurchaseOutwardPurchase Returns
SPDSales DeliverySalesOutwardSales Delivery Notes
SPTSales ReturnSalesInwardSales Returns
MFGProduction EntryManufacturingMixed (input + output)Production Entry
SCRScrap EntryManufacturingOutwardScrap 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 modeBehaviourUsed by
POSITIVEInward only; qty must be positiveOPN, PPR, SPT
NEGATIVEOutward only; qty must be positive, posted as negativePPT, SPD, SCR
MIXEDEither direction; positive adds, negative reducesADJ, MFG
PAIREDEach line has From Warehouse + To WarehouseTRF

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.

PolicyMeaningUsed by
OWNOwn stock only; ownership field hidden(none)
CUSTOMERCustomer stock only; customer field required(none)
BOTHOwn or customer; user picks per entry, can override per lineOPN, 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 enter
  • PPR — receives stock against a PO; blends the PO rate into the moving average
  • SPT — 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-average
  • PPT — returns stock to a supplier; consumes at current moving-average
  • SCR — 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:

CodeLabelBehaviour
DDraftEditable; rates blank until submit
SSubmittedPosted to ledger; read-only
CCancelledReversal 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#

TypeManage permissionCancel permission
OPNINVENTORY.MANAGE_STOCK_OPERATIONSINVENTORY.CANCEL_STOCK_ENTRIES
ADJINVENTORY.MANAGE_STOCK_OPERATIONSINVENTORY.CANCEL_STOCK_ENTRIES
TRFINVENTORY.MANAGE_STOCK_OPERATIONSINVENTORY.CANCEL_STOCK_ENTRIES
PPRPURCHASE.MANAGE_GRNINVENTORY.CANCEL_STOCK_ENTRIES
PPTPURCHASE.MANAGE_PURCHASE_RETURNSINVENTORY.CANCEL_STOCK_ENTRIES
SPDSALES.MANAGE_SALES_DELIVERYINVENTORY.CANCEL_STOCK_ENTRIES
SPTSALES.MANAGE_SALES_RETURNSINVENTORY.CANCEL_STOCK_ENTRIES
MFGMANUFACTURING.MANAGE_PRODUCTIONINVENTORY.CANCEL_STOCK_ENTRIES
SCRMANUFACTURING.MANAGE_PRODUCTIONINVENTORY.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

Last updated