brotherton-erpnext/docs/docs.user.stock.perpetual_inventory.md
2013-09-18 15:20:44 +05:30

8.3 KiB

_label
Perpetual Inventory

In perpetual inventory, system creates accounting entries for each stock transactions, so that stock and account balance will always remain same. The account balance will be posted against their respective account heads for each Warehouse. On saving of a Warehouse, the system will automatically create an account head with the same name as warehouse. As account balance is maintained for each Warehouse, you should create Warehouses, based on the type of items (Current / Fixed Assets) it stores.

At the time of items received in a particular warehouse, the balance of asset account (linked to that warehouse) will be increased. Similarly when you deliver some items from that warehouse, an expense will be booked and the asset account will be reduced, based on the valuation amount of those items.

Activation

  1. Setup the following default accounts for each Company

    • Stock Received But Not Billed
    • Stock Adjustment Account
    • Expenses Included In Valuation
    • Cost Center
  2. In perpetual inventory, the system will maintain seperate account balance for each warehouse under separate account head. To create that account head, enter "Create Account Under" in Warehouse master.

  3. Activate Perpetual Inventory

Setup > Accounts Settings > Make Accounting Entry For Every Stock Movement

Example

Consider following Chart of Accounts and Warehouse setup for your company:

Chart of Accounts

  • Assets (Dr)
    • Current Assets
      • Accounts Receivable
        • Jane Doe
      • Stock Assets
        • Stores
        • Finished Goods
        • Work In Progress
      • Tax Assets
        • VAT
    • Fixed Assets
      • Fixed Asset Warehouse
  • Liabilities (Cr)
    • Current Liabilities
      • Accounts Payable
        • East Wind Inc.
      • Stock Liabilities
        • Stock Received But Not Billed
      • Tax Liabilities
        • Service Tax
  • Income (Cr)
    • Direct Income
      • Sales Account
  • Expenses (Dr)
    • Direct Expenses
      • Stock Expenses
        • Cost of Goods Sold
        • Expenses Included In Valuation
        • Stock Adjustment
        • Shipping Charges
        • Customs Duty

Warehouse - Account Configuration

  • Stores
  • Work In Progress
  • Finished Goods
  • Fixed Asset Warehouse

Purchase Receipt

Suppose you have purchased 10 nos of item "RM0001" at $200 and 5 nos of item "Desktop" at $100 from supplier "East Wind Inc". Following are the details of Purchase Receipt:

Supplier: East Wind Inc.

Items:

ItemWarehouseQty RateAmountValuation Amount
RM0001Stores1020020002200
DesktopFixed Asset Warehouse 5100500550

Taxes:

AccountAmountCategory
Shipping Charges100Total and Valuation
VAT120Total
Customs Duty150Valuation

Stock Ledger

pr_stock_ledger

General Ledger

pr_general_ledger

As stock balance increases through Purchase Receipt, "Store" and "Fixed Asset Warehouse" accounts are debited and a temporary account "Stock Receipt But Not Billed" account is credited, to maintain double entry accounting system.

--

Purchase Invoice

On receiving Bill from supplier, for the above Purchase Receipt, you will make Purchase Invoice for the same. The general ledger entries are as follows:

General Ledger

pi_general_ledger

Here "Stock Received But Not Billed" account is debited and nullified the effect of Purchase Receipt. "Expenses Included In Valuation" account has been credited which ensures the valuation expense accounts are not booked (debited) twice (in Purchase Invoice and Delivery Note).

--

Delivery Note

Lets say, you have an order from "Jane Doe" to deliver 5 nos of item "RM0001" at $300. Following are the details of Delivery Note:

Customer: Jane Doe

Items:

ItemWarehouseQtyRateAmount
RM0001Stores53001500

Taxes:

AccountAmount
Service Tax150
VAT100

Stock Ledger

dn_stock_ledger

General Ledger

dn_general_ledger

As item is delivered from "Stores" warehouse, "Stores" account is credited and equal amount is debited to the expense account "Cost of Goods Sold". The debit/credit amount is equal to the total valuation amount (buying cost) of the selling items. And valuation amount is calculated based on your prefferred valuation method (FIFO / Moving Average) or actual cost of serialized items.

	
In this example, we have considered valuation method as FIFO. 
Valuation Rate 	= Purchase Rate + Charges Included in Valuation 
				= 200 + (250 * (2000 / 2500) / 10) 
				= 220
Total Valuation Amount 	= 220 * 5 
						= 1100
	

--

Sales Invoice with Update Stock

Lets say, you did not make Delivery Note against the above order and instead you have made Sales Invoice directly, with "Update Stock" options. The details of the Sales Invoice are same as the above Delivery Note.

Stock Ledger

si_stock_ledger

General Ledger

si_general_ledger

Here, apart from normal account entries for invoice, "Stores" and "Cost of Goods Sold" accounts are also affected based on the valuation amount.

--

Stock Entry (Material Receipt)

Items:

ItemTarget WarehouseQtyRateAmount
RM0001Stores5022011000

Stock Ledger

mr_stock_ledger

General Ledger

mr_stock_ledger

--

Stock Entry (Material Issue)

Items:

ItemSource WarehouseQtyRateAmount
RM0001Stores102202200

Stock Ledger

mi_stock_ledger

General Ledger

mi_stock_ledger

--

Stock Entry (Material Transfer)

Items:

ItemSource WarehouseTarget Warehouse QtyRateAmount
RM0001StoresWork In Progress 102202200

Stock Ledger

mtn_stock_ledger

General Ledger

mtn_general_ledger

--

Stock Entry (Sales Return - Sales Invoice booked)

Items:

ItemTarget WarehouseQtyRateAmount
RM0001Stores2200400

Stock Ledger

sret_stock_ledger

General Ledger

sret_general_ledger

--

Stock Entry (Purchase Return)

Items:

ItemSource WarehouseQtyRateAmount
RM0001Stores4220880

Stock Ledger

pret_stock_ledger

General Ledger

pret_general_ledger