summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protected/components/Format.php3
-rw-r--r--protected/models/AngebotVerein.php4
2 files changed, 4 insertions, 3 deletions
diff --git a/protected/components/Format.php b/protected/components/Format.php
index a4802e2..de92043 100644
--- a/protected/components/Format.php
+++ b/protected/components/Format.php
@@ -5,7 +5,8 @@ class Format {
}
public static function number($value, $einheit = '') {
- return Yii::app()->locale->numberFormatter->formatDecimal($value).' '.$einheit;
+ #return Yii::app()->locale->numberFormatter->formatDecimal($value).' '.$einheit;
+ return Format::decimal($value,"#.##0,00").' '.$einheit;
}
public static function decimal($value, $pattern = null) {
diff --git a/protected/models/AngebotVerein.php b/protected/models/AngebotVerein.php
index 183baef..a3f7a2d 100644
--- a/protected/models/AngebotVerein.php
+++ b/protected/models/AngebotVerein.php
@@ -56,8 +56,8 @@ class AngebotVerein extends CActiveRecord
public function afterFind() {
parent::afterFind();
- $this->preis = Format::decimal($this->preis, "00.00");
- $this->menge = Format::decimal($this->menge);
+ #$this->preis = Format::decimal($this->preis, "#.##0,00");
+ #$this->menge = Format::decimal($this->menge, "00.00");
}
public function beforeSave() {