Browse Source

Price fix

Vova Tkach 5 years ago
parent
commit
8a6dc57354
1 changed files with 1 additions and 5 deletions
  1. 1 5
      engine/fetdata/shop_product.go

+ 1 - 5
engine/fetdata/shop_product.go

@@ -134,11 +134,7 @@ func (this *ShopProduct) Price() float64 {
 	if this == nil {
 	if this == nil {
 		return 0
 		return 0
 	}
 	}
-	if this.currency == nil {
-		return this.object.A_price
-	} else {
-		return this.object.A_price * this.currency.Coefficient()
-	}
+	return this.object.A_price * this.Currency().Coefficient()
 }
 }
 
 
 func (this *ShopProduct) PriceFormat(format string) string {
 func (this *ShopProduct) PriceFormat(format string) string {