I’m encountering an issue where the Inventory Account (156) for one of my stock items is not being credited (reduced) when creating a Delivery Note. Only the other item’s inventory account is correctly posted.
1. Current Setup (Configuration)
| Element | Item | Warehouse | Inventory Account (TK Tồn Kho) | Cost of Goods Sold (TK GVHB) |
|---|---|---|---|---|
| Item A | Gas Cylinder Shell (Vỏ bình gas) | “Kho vỏ bình” | 1526 | 632 (Assumed) |
| Item B | 1kg Gas (Nước gas 1kg) | “Thành phẩm” | 156 | 632 (Assumed) |
Global Stock Setting:
- Default Inventory Account: Empty (Bỏ trống)
Confirmation of Account Assignment:
-
The Inventory Account 156 has been explicitly assigned to both the Item “1kg Gas” and the Warehouse “Thành phẩm”.
-
The COGS Account 632 has been assigned to both items (or at the default Company/Item Group level).
-
The Valuation Rate for “1kg Gas” is greater than zero.
2. Transaction
Document: Delivery Note (Phiếu xuất kho/Giao hàng)
Items Delivered:
-
01 unit of Gas Cylinder Shell (from “Kho vỏ bình”)
-
01 unit of 1kg Gas (from “Thành phẩm”)
3. GL Entry (Actual Result)
When submitting the Delivery Note, ERPNext generates the following GL Entry:
| Account | Debit (Nợ) | Credit (Có) | Description |
|---|---|---|---|
| 632 | X | Cost of Goods Sold | |
| Y | Inventory (Gas Cylinder Shell - 1526) | ||
| 632 | Z | (Missing/Incorrect Posting) | |
| 0 | Inventory (1kg Gas - 156) |
In short: The GL Entry correctly debits 632 and credits 1526, but the account 156 for “1kg Gas” is completely ignored or posted with a zero value, even though the item has stock value.
4. Expected GL Entry (Correct Result)
The system should generate a combined GL Entry that reflects the reduction in both inventory accounts:
| Account | Debit (Nợ) | Credit (Có) |
|---|---|---|
| 632 | (Y + Z) | |
| Y | ||
| Z |
5. My Question
Why is the Inventory Account 156 for the item “1kg Gas” not being credited, even when it is explicitly assigned to both the Item and the Warehouse, and the item has a positive valuation rate?
-
Could this be related to the Default Inventory Account being empty?
-
Is there a hidden account mapping (e.g., in Item Group or Company Account Defaults) that is overriding the Item/Warehouse configuration for only this specific item?
Any guidance on where to check the missing link in account mapping would be greatly appreciated!