#42538·frappe

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:

  1. Set the document currency to IQD, which has 0 decimal places.
  2. Add a row to a Child Table containing a Currency field that depends on the document's currency.
  3. Enter a value such as 1.
  4. Change the document currency from IQD to USD, which has 2 decimal places.
  5. Edit the existing row and enter 1.12.

Actual behavior:

  • The existing Currency field still uses the old IQD precision 0.
  • Entering 1.12 results in the decimal places being removed and the value becoming 1.
  • 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 2 instead of updating to 0.

https://github.com/user-attachments/assets/1ad98b2e-a290-430a-87bd-ee8303cb97c1

frappe: v16.33.0