cardinal
Stock

Inventory dimensions

Track stock by a dimension of your own, such as a Project or a Brand, on every stock voucher and in the Stock Ledger.

An Inventory Dimension adds a Link field to the rows of the stock vouchers and to Stock Ledger Entry. Each movement then carries a value of that dimension, so you can see stock per value, and stop it going negative per value.

Add one

Stock > Setup > Inventory Dimension > New. Set Dimension Name, say Project, and Reference Document, the RecType the field links to: Project.

Leave Apply to All Inventory Documents on, or turn it off and pick one Apply to Document with a Type of Transaction (Inward, Outward or Both).

Save. ERP names the fields after the dimension, project on the voucher rows and on Stock Ledger Entry, and a background job adds them as Custom Fields.

The reference cannot be a child table, Batch, Serial No, Warehouse or Item.

The fields land on the rows of Purchase Receipt, Purchase Invoice, Delivery Note, Sales Invoice, POS Invoice, Stock Entry, Stock Reconciliation and Subcontracting Receipt, and on Packed Item, Packing Slip Item, Putaway Rule, Quality Inspection, Job Card, Warranty Claim and Asset Capitalization rows. Stock Entry, Sales Invoice, Delivery Note, Purchase Invoice and Purchase Receipt rows also get to_ and from_ versions, and purchase rows a rejected_ one. Stock Ledger Entry and Stock Closing Balance get the target field.

Options

FieldUse
Validate Negative StockRefuse a movement that takes one value's balance below zero
MandatoryThe field is required on the rows
Mandatory Depends On (Backend)An expression that makes it required. It sees doc (the row) and parent
Conditional RuleAn expression for when the dimension applies, over doc and parent
Fetch Value FromA parent field to copy the value from. Type the fieldname; the desk has no list for it

Once a Stock Ledger Entry carries a value, only Fetch Value From, Type of Transaction, Conditional Rule and Validate Negative Stock can change. A dimension with stock transactions cannot be deleted.

Example

A contractor keeps one Stores warehouse for several building projects. With a Project dimension and Validate Negative Stock on:

VoucherRowProject
Purchase Receipt100 CEMENT into StoresTower A
Purchase Receipt50 CEMENT into StoresTower B
Stock Entry, Material Issue60 CEMENT from StoresTower B

Stores holds 150, but Tower B holds only 50, so the issue is refused. Issue 40 and the Stock Ledger shows Tower B at 10.

On this page