|
|
|
@ -2,7 +2,7 @@ import { UserService } from '@ghostfolio/client/services/user/user.service'; |
|
|
|
import { |
|
|
|
DEFAULT_PAGE_SIZE, |
|
|
|
NUMERICAL_PRECISION_THRESHOLD_3_FIGURES, |
|
|
|
NUMERICAL_PRECISION_THRESHOLD_5_FIGURES |
|
|
|
NUMERICAL_PRECISION_THRESHOLD_4_FIGURES |
|
|
|
} from '@ghostfolio/common/config'; |
|
|
|
import { CreateOrderDto } from '@ghostfolio/common/dtos'; |
|
|
|
import { |
|
|
|
@ -288,7 +288,7 @@ export class GfHoldingDetailDialogComponent implements OnInit { |
|
|
|
this.averagePrice = averagePrice; |
|
|
|
|
|
|
|
if ( |
|
|
|
this.averagePrice >= NUMERICAL_PRECISION_THRESHOLD_5_FIGURES && |
|
|
|
this.averagePrice >= NUMERICAL_PRECISION_THRESHOLD_4_FIGURES && |
|
|
|
this.data.deviceType === 'mobile' |
|
|
|
) { |
|
|
|
this.averagePricePrecision = 0; |
|
|
|
@ -307,7 +307,7 @@ export class GfHoldingDetailDialogComponent implements OnInit { |
|
|
|
if ( |
|
|
|
this.data.deviceType === 'mobile' && |
|
|
|
this.dividendInBaseCurrency >= |
|
|
|
NUMERICAL_PRECISION_THRESHOLD_5_FIGURES |
|
|
|
NUMERICAL_PRECISION_THRESHOLD_4_FIGURES |
|
|
|
) { |
|
|
|
this.dividendInBaseCurrencyPrecision = 0; |
|
|
|
} |
|
|
|
@ -345,7 +345,7 @@ export class GfHoldingDetailDialogComponent implements OnInit { |
|
|
|
if ( |
|
|
|
this.data.deviceType === 'mobile' && |
|
|
|
this.investmentInBaseCurrencyWithCurrencyEffect >= |
|
|
|
NUMERICAL_PRECISION_THRESHOLD_5_FIGURES |
|
|
|
NUMERICAL_PRECISION_THRESHOLD_4_FIGURES |
|
|
|
) { |
|
|
|
this.investmentInBaseCurrencyWithCurrencyEffectPrecision = 0; |
|
|
|
} |
|
|
|
@ -355,7 +355,7 @@ export class GfHoldingDetailDialogComponent implements OnInit { |
|
|
|
|
|
|
|
if ( |
|
|
|
this.data.deviceType === 'mobile' && |
|
|
|
this.marketPriceMax >= NUMERICAL_PRECISION_THRESHOLD_5_FIGURES |
|
|
|
this.marketPriceMax >= NUMERICAL_PRECISION_THRESHOLD_4_FIGURES |
|
|
|
) { |
|
|
|
this.marketPriceMaxPrecision = 0; |
|
|
|
} |
|
|
|
@ -364,14 +364,14 @@ export class GfHoldingDetailDialogComponent implements OnInit { |
|
|
|
|
|
|
|
if ( |
|
|
|
this.data.deviceType === 'mobile' && |
|
|
|
this.marketPriceMin >= NUMERICAL_PRECISION_THRESHOLD_5_FIGURES |
|
|
|
this.marketPriceMin >= NUMERICAL_PRECISION_THRESHOLD_4_FIGURES |
|
|
|
) { |
|
|
|
this.marketPriceMinPrecision = 0; |
|
|
|
} |
|
|
|
|
|
|
|
if ( |
|
|
|
this.data.deviceType === 'mobile' && |
|
|
|
this.marketPrice >= NUMERICAL_PRECISION_THRESHOLD_5_FIGURES |
|
|
|
this.marketPrice >= NUMERICAL_PRECISION_THRESHOLD_4_FIGURES |
|
|
|
) { |
|
|
|
this.marketPricePrecision = 0; |
|
|
|
} |
|
|
|
@ -393,7 +393,7 @@ export class GfHoldingDetailDialogComponent implements OnInit { |
|
|
|
if ( |
|
|
|
this.data.deviceType === 'mobile' && |
|
|
|
this.netPerformanceWithCurrencyEffect >= |
|
|
|
NUMERICAL_PRECISION_THRESHOLD_5_FIGURES |
|
|
|
NUMERICAL_PRECISION_THRESHOLD_4_FIGURES |
|
|
|
) { |
|
|
|
this.netPerformanceWithCurrencyEffectPrecision = 0; |
|
|
|
} |
|
|
|
|