Change currency symbol position

Hello Endi,

I’m from Croatia :slight_smile:

I’m trying to find solution (upgrade safe solution) to put currency symbol (kn) behind the amount (for example: 1000 kn instead kn 1000).

If you have solution for this, let me know :wink:

Not upgrade safe, but a working solution:

Open /modules/Currencies/Currency.php
Go to line 408

Edit this fuction;

function format_place_symbol($amount, $symbol, $symbol_space) {
	if($symbol != '') {
		if($symbol_space == true) {
			$amount = $symbol . ' ' . $amount;
		} else {
			$amount = $symbol . $amount;
		}
	}
	return $amount;
}

Like this:

function format_place_symbol($amount, $symbol, $symbol_space) {
	if($symbol != '') {
		if($symbol_space == true) {
			$amount = $amount . ' ' . $symbol;
		} else {
			$amount = $amount . ' ' . $symbol;
		}
	}
	return $amount;
}
1 Like

Git request here:
https://github.com/salesagility/SuiteCRM/issues/5063