diff options
| author | astaf <astaf@proxy.ccwn.org.ccwn.org> | 2013-06-20 20:42:13 +0200 |
|---|---|---|
| committer | astaf <astaf@proxy.ccwn.org.ccwn.org> | 2013-06-20 20:42:13 +0200 |
| commit | 1489c096b805f34cd96c18c21ec649c52ef021b9 (patch) | |
| tree | 86c3a095e7a36d9d927e08826edd48a2fe522b90 /protected/components/Format.php | |
| parent | abbb5cf76066dcc304370c4587bfb55545ca4a40 (diff) | |
Stand Produktion
Diffstat (limited to 'protected/components/Format.php')
| -rw-r--r-- | protected/components/Format.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/protected/components/Format.php b/protected/components/Format.php index 1be259f..8a80768 100644 --- a/protected/components/Format.php +++ b/protected/components/Format.php @@ -1,6 +1,7 @@ <?php class Format { public static function currency($value, $currency = 'EUR') { + if ($value <=0) { return "?,?? EUR"; } return Yii::app()->locale->numberFormatter->formatCurrency($value, $currency); } |
