Stock Settings
Stock Settings holds the defaults and rules that apply to every stock document in ERPNext. Open Stock Settings from the search bar. The settings are grouped in tabs.
Defaults tab
Item Defaults
| Setting | Description |
|---|---|
| Item Naming By | How ERPNext names a new Item. Item Code (default) uses the code you enter. Naming Series hides the Item Code field and names Items from a naming series. When you select Naming Series, the Naming Series options field and the Configure Series button appear. |
| Default Item Group | The Item Group that ERPNext sets on a new Item. |
| Default Valuation Method | The valuation method for Items that have no method of their own: FIFO, Moving Average, or LIFO. ERPNext does not let you change it after stock transactions exist for Items that use this default. Learn about FIFO and moving average valuation and how to change the valuation method. |
Price List Defaults
| Setting | Description |
|---|---|
| Auto insert Item Price if missing | When you use an Item in a transaction and the selected price list has no Item Price for it, ERPNext creates the Item Price from the rate in the transaction. Selling transactions use the selling price list, and buying transactions use the buying price list. Learn more about Item Prices. |
| Update existing Price List Rate | Shown when Auto insert Item Price if missing is selected. Also updates an Item Price that already exists. |
| Update Price List based on | Shown when Auto insert Item Price if missing is selected. Rate (default) or Price List Rate: the transaction field that ERPNext copies into the Item Price. |
WARNING
If Use prices from Default Price List as fallback is also selected in Selling Settings, prices from the default price list can be inserted into the transaction price list. ERPNext shows a message when you turn on both.
UOM Defaults
| Setting | Description |
|---|---|
| Default Stock UOM | The stock unit of measure (UOM) that ERPNext sets on a new Item. Learn more about units of measure. |
| Allow to edit stock UOM qty for Sales documents | Makes the quantity in the stock UOM editable in sales documents. You enter the stock quantity, and ERPNext calculates the conversion factor. |
| Allow to edit stock UOM qty for Purchase documents | The same, for purchase documents and Material Requests. |
| Allow to edit stock UOM qty for Stock Entry | The same, for Stock Entry rows. |
| Allow UOM with conversion rate defined in Item | If selected, you can select a UOM in sales and purchase transactions only when the Item has a conversion factor for that UOM. |
The three "Allow to edit" settings help when the stock UOM must stay a whole number and no exact conversion factor exists. For example, an Item is stocked in Nos and bought in boxes of uneven count. You enter the number of pieces, and ERPNext derives the conversion factor.
Warehouse Defaults
| Setting | Description |
|---|---|
| Default Warehouse | The warehouse that ERPNext sets as the Default Warehouse on a new Item. A group warehouse is not allowed. |
| Sample Retention Warehouse | The warehouse that stores retained samples. A group warehouse is not allowed. Learn how to retain sample stock. |
Stock Validations tab
Negative Stock
| Setting | Description |
|---|---|
| Allow negative stock | Lets stock transactions take the quantity of an Item below zero. You can also allow this for a single Item in the Item form. ERPNext asks you to confirm, because FIFO and moving average valuation do not work while stock is negative. You cannot select it while Enable stock reservation is selected. |
INFO
Allow negative stock does not apply to serialized or batched Items. For batches, see Allow negative stock for Batch on the Serial & Batch Item tab.
Learn how ERPNext adjusts the cost of goods sold for negative stock.
Quantity Tolerance
| Setting | Description |
|---|---|
| Over Delivery/Receipt Allowance (%) | The percentage by which you can receive or deliver more than the ordered quantity. For example, with an allowance of 10% on an order of 100 units, you can receive 110 units. Default 0. |
| Over Transfer Allowance (%) | The percentage by which you can transfer more than the ordered quantity. |
| Over Picking Allowance (%) | The percentage by which you can pick more than the ordered quantity in a Pick List. |
| Role Allowed to Over Deliver/Receive | Shown when Over Delivery/Receipt Allowance (%) is more than 0. Users with this role can deliver or receive more than the allowance. |
Learn more about over-delivery and over-billing.
Display & Data Formatting
| Setting | Description |
|---|---|
| Show barcode field in stock transactions | Shows the barcode fields in Items and the Scan Barcode field in transactions. Selected by default. Learn more about barcodes. |
| Convert Item description to clean HTML in transactions | Removes embedded styles from Item descriptions, for example styles copied from a website or a word processor. These styles can break print formats. When you turn the setting on, ERPNext also cleans the descriptions of existing Items. Selected by default. Clear it to keep custom HTML in descriptions. |
Internal Transfer Rules
| Setting | Description |
|---|---|
| Allow internal transfers at user-defined rate | The Item rate in an internal transfer does not change to the valuation rate. The accounting entries still use the valuation rate. Use it to show a different rate for printing or tax. Learn about internal transfers. |
| Validate Material Transfer warehouses | In a Material Transfer Stock Entry, the source and target warehouses must be different. If you use inventory dimensions, the warehouses can be the same when at least one dimension field is different. |
Serial & Batch Item tab
| Setting | Description |
|---|---|
| Activate Serial / Batch No for Item | Turns on serial and batch tracking. The other settings on this tab appear only when this setting is selected. You cannot clear it after any Serial and Batch Bundle is submitted, or while any Item has Has Serial No or Has Batch No selected. |
Learn how serial numbers and batches work.
Serial Item settings
| Setting | Description |
|---|---|
| Pick Serial / Batch Based On | The order in which ERPNext picks serial numbers and batches for outward transactions: FIFO (default), LIFO, or Expiry. Shown when Auto create Serial and Batch Bundle for outward is selected. |
| Allow existing Serial No to be Manufactured/Received again | Lets a serial number that already exists be received or manufactured again. Selected by default. |
| Use Serial / Batch fields | Shows the Serial No and Batch No fields in transaction rows. On submit, ERPNext creates the Serial and Batch Bundle from these fields. Selected by default. |
| Disable Serial No and Batch selector | You enter serial and batch data by hand instead of in the selector dialog. ERPNext keeps this selected while Use Serial / Batch fields is selected. |
Batch Item settings
| Setting | Description |
|---|---|
| Allow negative stock for Batch | Allows negative stock for a batch only when a back-dated entry causes it. ERPNext blocks negative batch stock in every other case. Negative batch stock can give wrong valuation rates, so avoid this setting. |
| Do not use Batch-wise Valuation | Values batched Items with the moving average method instead of the incoming rate of each batch. You cannot clear it after any Serial and Batch Bundle is submitted. |
| Have default Naming Series for Batch ID? | Names new batches from a naming series. ERPNext uses it only when the Item has no batch naming series of its own. |
| Naming Series Prefix | Shown when Have default Naming Series for Batch ID? is selected. The prefix for batch IDs. Default BATCH-. |
Learn more about batches and serial numbers.
Serial and Batch Bundle
| Setting | Description |
|---|---|
| Auto create Serial and Batch Bundle for outward | Creates the Serial and Batch Bundle for outward transactions. Selected by default. |
| Do not update Serial / Batch on creation of auto bundle | When ERPNext creates a bundle, it does not write the serial and batch values back into the transaction rows. Selected by default. |
| Auto Map Raw Materials to Finished Goods | On submit of a Manufacture or Repack Stock Entry, maps the raw material serial and batch numbers that were not mapped in the draft to the finished goods, in order. Learn how to map raw materials to finished goods. |
| Set Serial and Batch Bundle Naming Based on Naming Series | Names Serial and Batch Bundles from a naming series. When selected, the Naming Series options field and the Configure Series button appear. |
Stock Reservation tab
| Setting | Description |
|---|---|
| Enable stock reservation | Lets you keep aside a quantity of stock for a specific order. You cannot select it while Allow negative stock is selected. You cannot clear it while reserved stock exists. Learn about stock reservation. |
| Auto reserve stock | Reserves stock when you submit a Sales Order, Work Order, or Production Plan. |
| Allow partial reservation | Reserves the available stock when it is less than the order quantity. For example, for a Sales Order of 100 units with 90 units available, ERPNext reserves 90 units. Selected by default. |
| Auto reserve Stock for Sales Order on Purchase | Reserves stock when you submit a Purchase Receipt created against a Material Request for a Sales Order. |
Serial and Batch Reservation
| Setting | Description |
|---|---|
| Auto reserve Serial and Batch Nos | Reserves serial numbers and batches based on Pick Serial / Batch Based On. Selected by default. Shown when Enable stock reservation is selected. |
Quality tab
| Setting | Description |
|---|---|
| Allow to make Quality Inspection after Purchase / Delivery | Lets you create a Quality Inspection after the Purchase Receipt or Delivery Note is submitted. |
| Action if Quality Inspection is rejected | Stop (default) blocks the submission of the transaction. Warn shows a message and allows it. |
| Action if Quality Inspection is not submitted | Stop (default) or Warn, as above. |
Learn more about Quality Inspection.
Stock Planning tab
| Setting | Description |
|---|---|
| Raise Material Request when stock reaches re-order level | Creates Material Requests when the stock of an Item falls to the re-order level set in the Item. |
| Notify by email on creation of automatic Material Request | Sends an email when ERPNext creates an automatic Material Request. |
Learn how to set up automatic Material Requests.
Stock Closing tab
Control Historical Stock Transactions
| Setting | Description |
|---|---|
| Freeze stocks older than (days) | Stock transactions older than this number of days cannot be modified. |
| Stock frozen up to | No stock transactions can be created or modified on or before this date. |
| Role allowed to edit frozen stock | Shown when a freeze is set. Users with this role can create or modify frozen stock transactions. |
| Role allowed to create/edit back-dated transactions | If set, only users with this role can create or modify a stock transaction dated earlier than the latest transaction for the same Item and warehouse. If blank, all users can. |
Document Naming tab
This tab shows the naming series of the stock documents: Stock Entry, Purchase Receipt, Delivery Note, Material Request, Pick List, Stock Reconciliation, and Serial and Batch Bundle. The Item appears when Item Naming By is Naming Series. Learn more about naming series.
Errors
| Message | Cause | Fix |
|---|---|---|
Stock transactions before date are frozen | The posting date is on or before Stock frozen up to. | Ask a user with the Role allowed to edit frozen stock, or change the date. |
Not allowed to update stock transactions older than days | The posting date is older than Freeze stocks older than (days). | Ask a user with the Role allowed to edit frozen stock. |
| Can't change the valuation method, as there are transactions against some items which do not have its own valuation method | You changed Default Valuation Method after stock transactions. | Set the method on each Item instead. See Change the valuation method. |
| Group Warehouses cannot be used in transactions | Default Warehouse or Sample Retention Warehouse is a group warehouse. | Select a warehouse that is not a group. |