Comments (2)
Because validation already set:
erpnext/erpnext/controllers/accounts_controller.py
Lines 2325 to 2334 in dfaca93
It's responsible for checking the validity of a conversion rate between currencies. Here's what it does:
- It first gets the default currency of the company where the transaction is occurring.
- Then it checks if there is a default currency set for the company. If not, it throws an error asking the user to enter the default currency.
- Next, it evaluates three conditions:
a. If the currency of the transaction matches the default currency and the conversion rate is not 1, or if there's no conversion rate specified.
b. If the currency of the transaction doesn't match the default currency and the conversion rate is 1.
If any of these conditions are met, it throws an error stating that the conversion rate cannot be 0 or 1.
In simpler terms, the code ensures that the conversion rate between currencies is valid. It checks if the conversion rate is neither 0 nor 1, and it makes sure that the conversion rate is specified when the currencies involved are different from the default currency of the company.
from erpnext.
As this is applicable to a very rare use-case, we have decided to keep the validation. You can bypass the validation by overriding the function, closing the issue.
from erpnext.
Related Issues (20)
- General Ledger includes entries from two different accounts instead of the one selected in filter HOT 1
- Work Order - Closed - Error in Return Components
- Unable to Submit Transaction : After Period Closing
- Server Error when not selected any warehouse in filter while Downloading Material request plan with where no wherehouse is selected
- Accounting Dimension on Journal Entry is not Fetched from Invoices/Payments when Invoice Reconciled against Credit Note using Payment Reconciliation HOT 1
- Remove Validation to Prevent Foreign Currency Advance Accounts HOT 1
- Purchase Order Update Items button does not add Supplier Codes HOT 1
- Employee list not updated HOT 2
- Include Item Tax Template in Update Item Tab HOT 1
- Return/ Credit Note against the Sales Invoice is not allowed, if decrease the Item Max Discount (%) of Item master
- Receipt Qty not updated in Material Request
- Apply Tax Withholding Amount Checkmark of the Payment Entry
- Incorrect Status of Payment Request
- Create Payment Request against Payment Term and update paid amount on reference document against that term.
- Incorrect validation: total payment request amount cannot be greater than ref doc grand total
- Don't allow negative amount on Payment Request
- Set "Advance Payment Status" in Order based on actual payment amount instead of Payment Request
- Negative stock of quantity in the warehouse
- Batch No of an Item has negative stock of quantity -30.0 in the warehouse
- "Unknown column 'tabPurchase Invoice.item_code' in 'where clause'" in Item-wise Purchase Register Report
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erpnext.