Skip to main content

Currency decimal precision in invoices

Written by Yokoy Team
Updated over 2 months ago

🌐 Web | 👤 Invoice processor, Finance

Yokoy handles amounts in invoices, POs and GRs according to the currency’s decimal precision specified by ISO 4217. For example, Japanese Yen or Islandic Krona do not support decimal units; Tunisian Dinar and Kuwaiti Dinar use up to three decimal units.

🚧 Caution

This behavior applies to Yokoy Invoice only.

In expenses, Yokoy rounds amounts to two decimal places regardless of the currency. You cannot determine the decimal precision you want to use for a currency. Yokoy determines the number of units according to ISO 4217.

Invoice, PO and GR amounts are displayed according to the decimal units defined for the defined currency. For example, if the currency of the invoice is Japanese Yen, then the invoice amount values are displayed without a decimal unit.

If you try to enter a decimal value in any of the amount fields that does not match the currency’s decimal precision, then an error is displayed. For example, if you try to enter the value 20.5 as the net line item amount for an invoice in Japanese Yen, the value is highlighted as incorrect until you remove the decimal unit.

Amount fields in invoices, POs and GRs

The currency determines the decimal units allowed in these fields:

Invoice header

Invoice line item

PO header & line item

GR line item

  • Total amount (gross)

  • Net

  • Tax

  • Self-assessed tax

  • Non-recoverable tax

  • Gross

  • Total ordered amount

  • Ordered amount

  • Delivered amount

  • Matched amount

  • Amount to Match

  • (Delivered) amount

  • Matched amount

  • Amount to match

Yokoy does not consider any amounts that may be included in custom fields.

Decimal precision in calculations

Yokoy takes into account the currency’s decimal precision when calculating invoice amounts or performing any rounding in the respective currency.

The item price is not rounded based on the currency decimal precision. When the invoice amount and the PO amount have a different decimal precision than the item price, the matching status calculation applies decimal precision to round the result wherever the item price is used.

If PO, GR or invoice amount data is imported via API (i.e. Yokoy API or via integration) and the number of decimals is greater than defined in Yokoy, the amount values are rounded arithmetically to comply with the unit precision for that currency. In other words, if the amount value does not contain the required number of decimal units, Yokoy adds zeros, i.e. 2 is taken as 2.00 for currencies with 2 decimal units. If the amount value contains more decimal units than allowed for the currency, Yokoy rounds up or down, as appropriate, i.e. for a currency with 2 decimal units, the amount 2.543 is rounded down to 2.54.

✏️ Note

Decimal rounding according to currency precision is only performed when the invoice is uploaded or updated. Any rounding is performed by an arithmetic principle.

🚧 Caution

If Yokoy AI incorrectly extracts the currency (due to readability issues or otherwise), you may need to manually adjust the currency in the invoice. In these cases, the amounts may be expressed in the decimal units determined by the extracted currency and not the manually adjusted currency.

Did this answer your question?