I have some balance in the “Stock Adjustment” account. All the transactions are “Material Transfer” type stock entries and no entry has any difference values. I can’t figure out how would they create in the first place!
Are you in V11? The culprit is precision not defined in stock_controller.py. For us its a bigger issue as we have 3 decimal digits. So amount of 1.234 transfer actually becomes 1.24. Plus .004 gets dropped into Stock Adjustment. We have asked to merging our PR in hotfix but no development on that front. You can fix the 2 lines in the file till PR is merged.
As mentioned by @fnrfarid this occurs when Material Transfer is done. What we thought was a precision issue is turning out to be something else. After looking at many lines of codes we still dont understand why system passes on fraction to stock adjustment in some cases and doesn’t in another. Below screen are from 2 internal transfers of same day.
0.771 worth of goods were transferred from warehouse A to warehouse B.
Same day another transfer from warehouse a to warehouse b and no stock adjustment
This is what exactly I tried to post here. These values make no sense at all. If it were happening for all, then I could understand that there’s a bigger issue. If the values were a “simillar type” values, like item price list price, then I could understand it as well.
But they are so random that I can’t pin the issue down.
It, of course, occurs in some other transactions, such as stock reconciliation and stock entry (Material Receipt), and these logically make a difference in this account. But the worrying thing is that it occurs in stock entry (Material Transfer) between two warehouses, so this should not be a difference. The value of transferred stock between both warehouses must be the same,