From 815ae4aaf09f3870530c7a5c6ae66d3811ed84a2 Mon Sep 17 00:00:00 2001
From: Patrick Seeger <pseeger@ccwn.org>
Date: Fri, 17 May 2013 11:23:34 +0200
Subject: Format einheiten korrigiert

---
 protected/components/Format.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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) {
-- 
cgit v1.0-28-g1787


From a2ce049acf525149178f19eb7972fe6bbc7a289f Mon Sep 17 00:00:00 2001
From: Patrick Seeger <pseeger@ccwn.org>
Date: Fri, 17 May 2013 11:23:54 +0200
Subject: Format Einheiten korrigiert

---
 protected/models/AngebotVerein.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/protected/models/AngebotVerein.php b/protected/models/AngebotVerein.php
index 183baef..0d7f926 100644
--- a/protected/models/AngebotVerein.php
+++ b/protected/models/AngebotVerein.php
@@ -57,7 +57,7 @@ class AngebotVerein extends CActiveRecord
 	public function afterFind() {
 		parent::afterFind();
 		$this->preis = Format::decimal($this->preis, "00.00");
-		$this->menge = Format::decimal($this->menge);
+		#$this->menge = Format::decimal($this->menge, "00.00");
 	}
 	
 	public function beforeSave() {
-- 
cgit v1.0-28-g1787


From 4761eb1fa30b895d1faa6f345fa0aa77779acfd0 Mon Sep 17 00:00:00 2001
From: Patrick Seeger <pseeger@ccwn.org>
Date: Fri, 17 May 2013 11:30:50 +0200
Subject: Format korrigiert

---
 protected/models/AngebotVerein.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/protected/models/AngebotVerein.php b/protected/models/AngebotVerein.php
index 0d7f926..a3f7a2d 100644
--- a/protected/models/AngebotVerein.php
+++ b/protected/models/AngebotVerein.php
@@ -56,7 +56,7 @@ class AngebotVerein extends CActiveRecord
 	
 	public function afterFind() {
 		parent::afterFind();
-		$this->preis = Format::decimal($this->preis, "00.00");
+		#$this->preis = Format::decimal($this->preis, "#.##0,00");
 		#$this->menge = Format::decimal($this->menge, "00.00");
 	}
 	
-- 
cgit v1.0-28-g1787

