custom/plugins/SwagExtensionStore/src/Resources/app/administration/src/module/sw-extension-store/page/sw-extension-store-detail/index.js
/**
         * @deprecated v2.0.0 - Will be removed, use renderPrice for display instead
         */
@deprecated v2.0.0 - Will be removed, use renderPrice for display instead
@deprecated v2 . 0 . 0 - Will be removed use renderPrice for display instead
calculatedPrice() {
            if (!this.recommendedVariant) {
                return null;
            }
            const label = this.hasActiveDiscount ? 'labelDiscountedPrice' : 'labelPrice';
            const text = this.$tc(
                `sw-extension-store.general.${label}`,
                this.shopwareExtensionService.mapVariantToRecommendation(this.recommendedVariant),
                {
                    price: Utils.format.currency(this.recommendedVariant.netPrice, 'EUR'),
                    discountedPrice: this.recommendedVariant.netPrice !== this.discountedPrice ?
                        Utils.format.currency(this.discountedPrice, 'EUR') : null
                }
            );
            return this.discountAppliesForMonths ? `${text}*` : text;
        }
calculatedPrice ( ) { if ( ! this . recommendedVariant ) { return null ; } const label = this . hasActiveDiscount ? 'labelDiscountedPrice' : 'labelPrice' ; const text = this . $tc ( ` ${ label } ` , this . shopwareExtensionService . mapVariantToRecommendation ( this . recommendedVariant ) , { price : Utils . format . currency ( this . recommendedVariant . netPrice , 'EUR' ) , discountedPrice : this . recommendedVariant . netPrice !== this . discountedPrice ? Utils . format . currency ( this . discountedPrice , 'EUR' ) : null } ) ; return this . discountAppliesForMonths ? ` ${ text } ` : text ; }
@deprecated v2.0.0 - Will be removed, use renderPrice for display instead
@deprecated v2 . 0 . 0 - Will be removed use renderPrice for display instead