-99 at currency fields in Opportunity module

Hi,

  1. Issue
    Default currency has been changed to ZAR (South African Rands) in Locale settings. In Opportunities Edit view & Detail view; currency fields are showing as -99 instead of ZAR.

  1. Instance:

    • OS: Unknown
    • Web Server: Apache Tomcat
    • PHP Version: Unknown
    • DB: Unknown
    • SuiteCRM Version: 8.9.2

Reason for not knowing much about the instance is my superior has that info on lock down. I only have access to the frontend.

  1. Installation:

    • Self-hosted On-prem
    • Relatively new. Running for a few months
    • Admin Rights: Only on the frontend
    • SSH Access: No
  2. Logs
    I do not have access to logs either unfortunately.

Verify the ZAR currency record

  • Go to Admin → Currencies.
  • Ensure the South African Rand exists

Check the Locale settings

  • Under Admin → Locale, confirm:
    • Default Currency = ZAR
    • Currency symbol is not blank.

Run Repair tools
If someone with backend access can do it:

  • Admin → Repair
    • Quick Repair and Rebuild

Browser cache
Since SuiteCRM 8 is a Symfony/Angular application, clear the browser cache or test in a private browsing window.

Possible SuiteCRM 8.9.2 bug
There have been several currency and locale fixes in later 8.x releases. If this only started after changing the default currency, it may be an issue already fixed in a newer release. (Issues Ā· SuiteCRM/SuiteCRM-Core Ā· GitHub)


SuiteCRM Currency: Managing Currencies and Exchange Rates @BastianHammer


  • Go to Admin > Locale.
  • Look at the very top section for System Currency settings.
  • Manually rephrase the core standard currency Display Label field text directly to ZAR or R.
  • Set the ISO 4217 code to ZAR.
  • Click Save.

Hi @rsp,

Thank you for your reply.

I have done all of the above. However, the issue still persists. It still shows -99 even in a private window on a different browser.

Is there anything else I may be missing?

Check out the below issue on the SuiteCRM GitHub pages.


I ran into this problem myself recently. From my notes I had to fix the metadata on the field in the detailview like this:

ā€˜currency_id’ => [
ā€˜name’ => ā€˜currency_id’,
ā€˜type’ => ā€˜id’,
ā€˜initDefaultProcess’ => ā€˜currency-default’,
ā€˜function’ => ā€˜getCurrencyDropDown’,
ā€˜group’ => ā€˜currency_id’,
ā€˜reportable’ => false,
],

in:
public/legacy/custom/modules/Opportunities/metadata/detailviewdefs.php

Also ensure you have currency set correctly in admin

1 Like

Is it a known issue in the SuiteCRM Version: 8.9.2?