-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qty difference between Stock Balance and Stock Ledger Reports #45191
Comments
Can you try setting the |
|
I'll have a word with more experienced folks regarding this issue but I have to say, this is a very rare bug. I am pretty sure without access to your site through Frappe Cloud, we probably won't be able to assist you as it is next to impossible to replicate this issue on our machines. If you are a Frappe Cloud customer, I'd highly recommend opening a support ticket. |
Unfortunately I am not on the frappe cloud, this is a self hosted environment. But I am willing to share any details or credentials if required. |
Since ERPs contain sensitive business data, I am not permitted to access user sites outside of Frappe Cloud. Maybe with the relevant permission and some free time I might be able to help you but I can't make any guarantee or give you a time frame whatsoever. On a different note: it seems like we're missing something here. Stock Balance is a crucial report. We have lots of users/customers using ERPNext for a long time. If there was something wrong with it we would have come to know very quickly. |
I understand, thanks for your input. if we reach to no solution I will see if we could shift temporarily to frappe cloud just for this issue resolution. We are using ERPNext since v12, I am also seeing this issue for the first time. Some things which I think might be causing this:
Note; we have done some minor tweaking in Subcontracting module to make it easier for the users..thats it. |
Thank you for understanding. As someone who primarily works on the Subcontracting module, I implore you to open GitHub issues regarding them. We will try to solve it. |
I just calculated what is shown in stock ledger and balance is calculated wrongly at 13 and 16 dec
|
Thanks for the input @saivineeth100 @mihir-kandoi I digged down a bit more and I think i can see what is happening. For some reason, while creating Subcontracting Receipt, when I update the consumed qty in Supplied raw material table, it does not update the Serial and Batch qty. I am sharing screenshots below Consumed Qty is FG+Waste: 2964+304 = 3268 |
@moizsami are you manually updating the Consumed Qty for the Raw Materials while creating the Subcontracting Receipt? |
Yes, because system doesnt add up the Waste qty. As you can see we receive waste + FG, so we want the consumed to be total of waste + FG, thats why we manually write it and here we had done some scripting that it auto calculates and update the qty. I need your input also if possible, isnt this how it is suppose to be ? my raw material was fully consumed but some of it was returned as waste. so shouldnt the consumed be total of FG+Waste ? |
Have you done some customisation that would interfere with this process? Please check the Stock Ledger Variance report if it shows something. If it does, try reposting those entries. Other than that I think we are out of options here as we are not able to replicate this. As for your question, it is not necessary that raw materials should be FG + Waste as in some manufacturing processes the ratio between raw material and FG is not always fixed. You can set the consumed qty to anything you like given that it is lesser or equal to available qty. However it is worth mentioning that when we change the consumed qty of raw material and if that RM has batch/serial bundle, user should manually change the batch qty. If they don't, the system will modify the quantity of those batches on its own to match the total consumed qty which is not always correct. In your case the serial/batch bundle is not being updated on its own. |
From my side I have only added the option before save to auto calculate the number and insert in consumed qty
it is very difficult to ask the users to update these things (batch qty) manually as they were not doing it in older versions.. Is there any way to disable the batch and convert the item to non batch item. I know ERP doesnt allow it, but I have no other option left here. I cannot create new item as 100s of BOM are dependant on these items. |
Then this can be the root cause. As said before, when you change Consumed Qty it is also mandatory to change Batch Qty of each batch item. There is no way the system can know by itself how to distribute the quantity between the batches. You cannot convert Items with batches to Non-Batch Item. The amount of reposting required would be insane and time consuming. What I can suggest however is to create new versions of both BOMs and Items (non-batch this time if you don't require batches for that item) and work with that. Without knowing the exact in and outs of your masters, it's nearly impossible to help you with this as we cannot possibly replicate this. |
Thank you for all the feedback, one last question, if I have an item which has only one batch (one master batch) will it then auto update the values while doing the consumption entry ? I am thinking to disable all batches of each item and keep one only active, if it will help with the process |
Can you help me understanding what does the below highlighted option does to an entry, I tried understanding it from the documentation but still not getting it. |
|
Information about bug
We are seeing differences in Qty for multiple items between the stock balance and ledger reports
I have made sure that all the repost item valuation jobs have been completed, still facing the issue.
Using the latest v15 version.
I am feeling mostly this is happening with Batch items. This is a production environment and affecting us really badly.
Example for one of the items.
One more issue we see is, if we click on the segragate checkmark on the Stock ledger for batches, the numbers are again displaying something else entirely.
Module
stock, buying
Version
ERPNext: v15.47.5 (version-15)
Frappe Framework: v15.51.1 (version-15)
Installation method
None
Relevant log output / Stack trace / Full Error Message.
No response
The text was updated successfully, but these errors were encountered: