-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Exchange Rate Revaluation throws error for account Stock In Hand #45201
Comments
Okay, so on further investigation, I found that the Journal Entry that's being created doesn't have any accounts at all. JE trying to be created (used a server script to print this as an error):{"name": "ACC-JV-2025-00010", "owner": "[email protected]", "creation": "2025-01-10 00:08:41.796753", "modified": "2025-01-10 00:08:41.796753", "modified_by": "[email protected]", "docstatus": 0, "idx": 0, "is_system_generated": 0, "title": null, "voucher_type": "Exchange Gain Or Loss", "ineligibility_reason": "As per rules 42 & 43 of CGST Rules", "naming_series": "ACC-JV-.YYYY.-", "finance_book": null, "process_deferred_accounting": null, "reversal_of": null, "tax_withholding_category": null, "from_template": null, "company": "Algocode Technologies Private Limited", "company_gstin": null, "posting_date": "2024-04-01", "apply_tds": 0, "cheque_no": null, "cheque_date": null, "user_remark": null, "total_debit": 0.0, "total_credit": 0.0, "difference": 0.0, "multi_currency": 1, "total_amount_currency": null, "total_amount": 0.0, "total_amount_in_words": null, "clearance_date": null, "remark": null, "paid_loan": null, "inter_company_journal_entry_reference": null, "bill_no": null, "bill_date": null, "due_date": null, "write_off_based_on": "Accounts Receivable", "write_off_amount": 0.0, "pay_to_recd_from": null, "letter_head": "Default Letterhead", "select_print_heading": null, "mode_of_payment": null, "payment_order": null, "is_opening": "No", "stock_entry": null, "auto_repeat": null, "amended_from": null, "doctype": "Journal Entry", "accounts": [], "__islocal": true, "__unsaved": 1}
I looked at the code and it looks like the reason why that is is because in my Exchange Rate Revaluation:
Am I using the Exchange Rate Revaluation voucher wrong? What I am trying to achieve is that on our system, the account "Debtors-USD" has zero balance in USD, but the Balance Sheet still shows a Debit of Rs. 4347.50 (in INR) I summed up the "GL Entry" table for this account and found the following: Sum of Debit Amount in Account Currency (USD): 469500 Sum of Debit Amount in Company Currency: 39177247.5 Hence the difference in USD is 0 (debits and credits match - which is correct since we do not have any receivable against this account), but in INR it's 4,347.50. I am not sure how we ended up here but this balance was brought over from the previous year's accounts which are now closed :/ Edit: I decided to try creating a Revaluation voucher with the posting date set to today (hence the |
Information about bug
I am trying to post an Exchange Rate Revaluation entry since there's a difference between the amounts in company currency and the account currency.
When I am trying to create a Journal Entry, it throws an error: "Account: Stock In Hand - ATPL can only be updated via Stock Transactions"
We don't use any Stock accounts/features in the system, so it's weird that this shows up.
The site is hosted on Frappe Cloud.
Module
accounts
Version
Frappe: v15.51.2
ERPNext: v15.48.1
India Compliance: v15.14.7
Frappe HR: v15.37.2
Installation method
None
Relevant log output / Stack trace / Full Error Message.
The text was updated successfully, but these errors were encountered: