cardinal
Stock

Stock

Items, stock entries, valuation, back-dated reposts and automatic reorder in ERP.

Every stock movement writes Stock Ledger Entries. With perpetual inventory, which the setup wizard turns on, each movement also posts to the GL. A warehouse's inventory account, Stock In Hand - AT for the default ones, always equals the stock value of its warehouses.

Items

An item needs Item Code, Item Group and Default Unit of Measure. Tick Maintain Stock for anything you count. In Item Defaults, set the company and its Default Warehouse so vouchers fill the warehouse for you.

Valuation Method on the item is FIFO, Moving Average or LIFO. Left empty, the item uses Stock Settings' Default Valuation Method, FIFO after setup. See Items for the rest of the Item form.

Stock Entry

Stock Entry TypeRows needGL with perpetual inventory
Material ReceiptTarget Warehouse, Basic RateInventory account debit, difference account credit
Material IssueSource WarehouseDifference account debit, inventory account credit
Material TransferSource and Target WarehouseNothing, when both warehouses use one inventory account

The difference account defaults to the company's Stock Adjustment account. Manufacture, Repack, Material Transfer for Manufacture and Send to Subcontractor are also installed, for manufacturing and subcontracting.

An issue takes stock out at the rate the ledger gives now, from the FIFO queue or the moving average. A transfer's receiving leg comes in at exactly the rate the issuing leg went out at.

Two users issuing the last unit at the same moment, from different nodes, cannot both succeed. One submit goes through and the other is refused, and the bin stays at 0.

Goods in transit

A transfer can go through a Transit warehouse, such as Goods In Transit - AT, while the goods are on the road.

Create a Stock Entry Type with Purpose Material Transfer and Add to Transit ticked. The standard types cannot take the flag.

Make a Stock Entry of that type from Stores to Goods In Transit - AT and submit. The target must be a Transit warehouse of the company. A Material Request it names goes In Transit.

When the goods arrive, call erp.stock_entry.make_stock_in_entry with the first entry's name. It returns a new Material Transfer from the transit warehouse to the warehouse the request asked for, for what is still in transit. Submit it. The first entry's Per Transferred reaches 100 and the request's Transfer Status becomes Completed.

Stock Reconciliation

Use it to set a warehouse's quantity and rate to what you counted. Purpose is Opening Stock or Stock Reconciliation. Each changed row becomes the new balance, and rows that change nothing are dropped.

Stock Reconciliation posts against the Stock Adjustment account. Opening Stock posts against the company's Temporary account, as opening entries, and is refused for an item that already has stock in that warehouse.

Back-dated entries and repost

A back-dated stock voucher, or any cancel of one, changes the value of later issues. ERP then submits one Repost Item Valuation per item and warehouse the voucher moved. A background job revalues the later Stock Ledger rows and posts their GL again.

A FIFO example for item R in Stores:

Posting dateEntryValue of the 10-29 issue
10-24Receive 10 at 100
10-26Receive 10 at 120
10-29Issue 151,600 (10 x 100 + 5 x 120)
10-25, entered laterReceive 5 at 801,400 (10 x 100 + 5 x 80)
10-27, entered laterIssue 41,480 (6 x 100 + 5 x 80 + 4 x 120)

After the repost, the 10-29 issue's GL reads Stock Adjustment - AT debit 1,480 and Stock In Hand - AT credit 1,480.

Repost Item Valuation's status goes Queued, In Progress, then Completed. The job works in chunks and commits each one, so a worker that dies halfway loses only the chunk it was on, and the repost resumes from there. An hourly sweep restarts any repost whose job stopped. A Queued or In Progress repost cannot be cancelled.

You can also submit a Repost Item Valuation by hand: Based On Transaction names a voucher, Based On Item and Warehouse names both. Its date may not fall in a closed period.

To run reposts only at night, turn on Stock Reposting Settings' Limit timeslot for Stock Reposting and set Start Time and End Time.

Reorder

Add rows to an item's Reorder level based on Warehouse table: the warehouse, Re-order Level, Re-order Qty and Material Request Type. Then turn on Stock Settings' Auto Material Request.

Each day a job checks every row. When the projected quantity is at or below the re-order level, it adds a row to a submitted Material Request, one request per type and company. The quantity is the re-order quantity, raised if needed so the projected quantity reaches the level.

Example: item RO, Stores, Re-order Level 10, Re-order Qty 20, type Purchase. With 5 in stock, the next run raises one Material Request for 20. The request raises the projected quantity, so the run after that raises nothing.

With Notify by Email on Reorder on, the list of new requests goes to the company's Stock Managers and Purchase Managers.

More on stock

On this page