Made new warehouse and receipt worked well, but now the warehouse showed same error again (no accounting entries…) after I renamed it. What to do? I think create new warehouse again is not a solution…
Thanks @nabinhait . I’m using v5
It seemed after renamed the warehouse, the account record didn’t change to refer to that warehouse. Also, I could not set the warehouse for the account…
So I created new warehouse and then merged it with existing…
I’m using v5.0.11 now and this issue still persists…after renaming warehouse, all stock transactions for that warehouse shows : No Accounting Entries.
I checked warehouse account and it’s set correctly. This error happens after renaming warehouse master.
I think there should be validation that prevents stock ledger entry if accounting entriy fails and vice-versa. Otherwise there’ll be different balance between stock ledger and warehouse account.
I noted this is quite old, in case some of you have found a solution, after renaming some warehouses, I’m experiencing the very same on ERPNext v15.60.2 when trying to receive a purchase.
This is the part of the code that “collects” those wharehouses:
elif (d.warehouse and d.warehouse not in warehouse_with_no_account) or (
not frappe.db.get_single_value("Buying Settings", "set_valuation_rate_for_rejected_materials")
and d.rejected_warehouse
and d.rejected_warehouse not in warehouse_with_no_account
):
warehouse_with_no_account.append(d.warehouse or d.rejected_warehouse)
I frankly don’t understand why i validates agains the account NOT being in a list of warehouses with no account. Isn’t the check to be the opposite?
Well, the issue in my case what that one of the items on the invoice is set to not keep track of its stock.
When the user selected a default warehouse, that validation showed. To me the message is quite deceiving: “No Accounting entries for warehouses”.
Unfortunately it is quite above me at this time to propose a better handling of the error. Hope it helps someone else.