In ERPNext (based on Frappe Framework), there appears to be an issue with stock valuation when using Asset Capitalization with backdated transactions.
Scenario:
-
An item is received into a warehouse with an initial valuation rate.
-
After a few months, the same item is received again into the same warehouse with a different (new) rate.
-
Then, an Asset Capitalization document is created with a posting date between the two receipts (i.e., backdated relative to the second receipt).
Expected Behavior:
-
The system should correctly recalculate valuation rates based on the posting date.
-
If necessary, Repost Item Valuation should be triggered automatically.
-
When creating new stock-related documents, the correct historical valuation rate should be fetched.
Actual Behavior:
-
Valuation rates are not updated correctly after Asset Capitalization.
-
The system fetches an incorrect valuation rate when creating new documents from the warehouse.
-
It seems that Repost Item Valuation is not triggered or not applied properly.
Version:
- Observed in ERPNext v14
Questions:
-
Is this a known issue in v14?
-
Has this behavior been fixed or improved in ERPNext v16?
-
Are there any changes in how Asset Capitalization interacts with stock valuation or reposting in newer versions?