Currency field does not update its precision when the linked currency changes
Author: elshafei-developerCreated Sep 6, 2026Updated Sep 28, 2026
Labelsbug
The issue occurs when the document's currency is changed to another currency with a different precision. Existing Currency fields continue using the precision of the previously selected currency until the document is saved.
For example:
- Set the document currency to IQD, which has
0decimal places. - Add a row to a Child Table containing a Currency field that depends on the document's currency.
- Enter a value such as
1. - Change the document currency from IQD to USD, which has
2decimal places. - Edit the existing row and enter
1.12.
Actual behavior:
- The existing Currency field still uses the old IQD precision
0. - Entering
1.12results in the decimal places being removed and the value becoming1. - The new precision is only applied after saving the document.
- The same issue also occurs with a regular Currency field outside a Child Table.
There is also an inconsistent behavior with Child Table rows:
- A row added while the currency is IQD keeps precision
0. - After changing the document currency to USD, a newly added row correctly uses precision
2. - However, if the currency is changed back to IQD, the newly added row continues to use precision
2instead of updating to0.
https://github.com/user-attachments/assets/1ad98b2e-a290-430a-87bd-ee8303cb97c1
frappe: v16.33.0
Source: frappe/frappe