field currency : currencySign at the end of value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • item
    Active Community Member
    • Mar 2017
    • 1476

    field currency : currencySign at the end of value

    Hello,
    just a simply request for currency field : add "case 3", see below. (currencySign at the end)

    PHP Code:
            if ($showCurrency) {
                switch ($currencyFormat) {
                    case 1:
                        $value = $value . ' ' . $currency;
                        break;
                    case 2:
                        $currencySign = $this->getMetadata()->get(['app', 'currency', 'symbolMap', $currency]);
                        $value = $currencySign . $value;
                        break;
                   case 3:
                        $currencySign = $this->getMetadata()->get(['app', 'currency', 'symbolMap', $currency]);
                        $value = $value .$currencySign;
                        break;
                }
            } 
    
    Regards
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​
Working...