| @@ 1075-1084 (lines=10) @@ | ||
| 1072 | case XOBJ_DTYPE_CURRENCY: |
|
| 1073 | $decimal_section_original = strstr($ret, '.'); |
|
| 1074 | $decimal_section = $decimal_section_original; |
|
| 1075 | if ($decimal_section) { |
|
| 1076 | if (1 == strlen($decimal_section)) { |
|
| 1077 | $decimal_section = '.00'; |
|
| 1078 | } elseif (2 == strlen($decimal_section)) { |
|
| 1079 | $decimal_section .= '0'; |
|
| 1080 | } |
|
| 1081 | $ret = str_replace($decimal_section_original, $decimal_section, $ret); |
|
| 1082 | } else { |
|
| 1083 | $ret .= '.00'; |
|
| 1084 | } |
|
| 1085 | break; |
|
| 1086 | ||
| 1087 | case XOBJ_DTYPE_TXTAREA: |
|
| @@ 1262-1271 (lines=10) @@ | ||
| 1259 | // make sur we have at least .00 in the $var |
|
| 1260 | $decimal_section_original = strstr($ret, '.'); |
|
| 1261 | $decimal_section = $decimal_section_original; |
|
| 1262 | if ($decimal_section) { |
|
| 1263 | if (1 == strlen($decimal_section)) { |
|
| 1264 | $decimal_section = '.00'; |
|
| 1265 | } elseif (2 == strlen($decimal_section)) { |
|
| 1266 | $decimal_section .= '0'; |
|
| 1267 | } |
|
| 1268 | $ret = str_replace($decimal_section_original, $decimal_section, $ret); |
|
| 1269 | } else { |
|
| 1270 | $ret .= '.00'; |
|
| 1271 | } |
|
| 1272 | if ($currencyObj) { |
|
| 1273 | $ret = $ret . ' ' . $currencyObj->getCode(); |
|
| 1274 | } |
|