How to add custom currency into InfyHMS?

Hospital - HMS - Hospital Management System - Appointment Booking - Smart Hospital

article image
profile
Mitul Golakiya

Follow the following steps to add existing or custom currency into InfyHMS.


All currencies are loaded from storage/currencies/defaultCurrency.json. If you want to add extra currency or your own custom currency, then first you need to open the file for all currencies which is located at storage/currencies/currenices.json. If you find the currency object that you want to add then copy that full object.


For e.g., I want to use the South Korean Won currency. so I will copy the following full object.


{
    "symbol": "₩",
    "name": "South Korean Won",
    "symbol_native": "₩",
    "decimal_digits": 0,
    "rounding": 0,
    "code": "KRW",
    "name_plural": "South Korean won"
}


If you don't find the currency in the file, then you can create your own currency object with the following fields:


{
    "symbol": "{Your currency symbol here}",
    "name": "{Your Currency Name}",
    "symbol_native": "{Your currency symbol here}",
    "decimal_digits": {Optional (default is 0)},
    "rounding":  {Optional (default is 0)},
    "code": "{Your Currency Code Here}",
    "name_plural": "{Your Currency Name}"
}


Once your currency object is created/copied, you need to append that object to the storage/currencies/defaultCurrency.json file. For e.g.,


{
    ... existing object
},
{
    "symbol": "{Your currency symbol here}",
    "name": "{Your Currency Name}",
    "symbol_native": "{Your currency symbol here}",
    "decimal_digits": {Optional (default is 0)},
    "rounding":  {Optional (default is 0)},
    "code": "{Your Currency Code Here}",
    "name_plural": "{Your Currency Name}"
}


You should be now able to see your currency in the currency list.