• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python util.format_price_with_symbol函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中pyticketswitch.util.format_price_with_symbol函数的典型用法代码示例。如果您正苦于以下问题:Python format_price_with_symbol函数的具体用法?Python format_price_with_symbol怎么用?Python format_price_with_symbol使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了format_price_with_symbol函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: cost

 def cost(self):
     """Formatted string value of the cost with currency symbol."""
     return format_price_with_symbol(
         self._core_despatch_method.despatch_cost,
         self._core_currency.currency_pre_symbol,
         self._core_currency.currency_post_symbol,
     )
开发者ID:babbageclunk,项目名称:pyticketswitch,代码行数:7,代码来源:availability.py


示例2: total_cost

 def total_cost(self):
     """Formatted string value of the total combined price with currency
     symbol."""
     return format_price_with_symbol(
         self._core_bundle.bundle_total_cost,
         self._core_bundle.currency.currency_pre_symbol,
         self._core_bundle.currency.currency_post_symbol
     )
开发者ID:adamchainz,项目名称:pyticketswitch,代码行数:8,代码来源:bundle.py


示例3: total_despatch

 def total_despatch(self):
     """Formatted string value of the total despatch cost with currency
     symbol."""
     return format_price_with_symbol(
         self._core_bundle.bundle_total_despatch,
         self._core_bundle.currency.currency_pre_symbol,
         self._core_bundle.currency.currency_post_symbol
     )
开发者ID:adamchainz,项目名称:pyticketswitch,代码行数:8,代码来源:bundle.py


示例4: total_surcharge

 def total_surcharge(self):
     """Formatted string value of the total surcharge cost with currency
     symbol."""
     return format_price_with_symbol(
         self._core_bundle.bundle_total_surcharge,
         self._core_bundle.currency.currency_pre_symbol,
         self._core_bundle.currency.currency_post_symbol
     )
开发者ID:adamchainz,项目名称:pyticketswitch,代码行数:8,代码来源:bundle.py


示例5: surcharge

    def surcharge(self):
        """Formatted string value of the surcharge with currency symbol."""

        return format_price_with_symbol(
            self._core_avail_detail.surcharge,
            self._core_currency.currency_pre_symbol,
            self._core_currency.currency_post_symbol,
        )
开发者ID:babbageclunk,项目名称:pyticketswitch,代码行数:8,代码来源:availability.py


示例6: ticket_price

 def ticket_price(self):
     """Formatted string value of the combined price with currency symbol.
     """
     return format_price_with_symbol(
         self._core_discount.combined,
         self._core_currency.currency_pre_symbol,
         self._core_currency.currency_post_symbol,
     )
开发者ID:babbageclunk,项目名称:pyticketswitch,代码行数:8,代码来源:availability.py


示例7: total_inc_despatch

 def total_inc_despatch(self):
     """Formatted string value of the total combined price including
     despatch with currency symbol.
     """
     return format_price_with_symbol(
         str(self.total_inc_despatch_float),
         self._core_currency.currency_pre_symbol,
         self._core_currency.currency_post_symbol
     )
开发者ID:adamchainz,项目名称:pyticketswitch,代码行数:9,代码来源:order.py


示例8: price_without_surcharge

    def price_without_surcharge(self):
        """Formatted string value of the price excluding surcharge with
        currency symbol."""

        return format_price_with_symbol(
            self._core_price_band.ticket_price,
            self._core_currency.currency_pre_symbol,
            self._core_currency.currency_post_symbol,
        )
开发者ID:babbageclunk,项目名称:pyticketswitch,代码行数:9,代码来源:availability.py


示例9: offer_surcharge_price

 def offer_surcharge_price(self):
     """Formatted string value of the offer surcharge price with
     currency symbol.
     """
     return format_price_with_symbol(
         self._core_offer['offer_surcharge'],
         self.currency.pre_symbol,
         self.currency.post_symbol
     )
开发者ID:babbageclunk,项目名称:pyticketswitch,代码行数:9,代码来源:base.py


示例10: offer_combined_price

 def offer_combined_price(self):
     """Formatted string value of the offer combined price with
     currency symbol.
     """
     return format_price_with_symbol(
         self._core_offer['offer_combined'],
         self.currency.pre_symbol,
         self.currency.post_symbol
     )
开发者ID:babbageclunk,项目名称:pyticketswitch,代码行数:9,代码来源:base.py


示例11: seatprice

 def seatprice(self):
     """Formatted string value of the seat price (i.e. without surcharge)
     with currency symbol.
     """
     return format_price_with_symbol(
         self._core_discount.seatprice,
         self._core_currency.currency_pre_symbol,
         self._core_currency.currency_post_symbol,
     )
开发者ID:babbageclunk,项目名称:pyticketswitch,代码行数:9,代码来源:availability.py


示例12: total_combined

 def total_combined(self):
     """Formatted string value of the total combined price with currency
     symbol.
     """
     return format_price_with_symbol(
         str(self.total_combined_float),
         self._core_currency.currency_pre_symbol,
         self._core_currency.currency_post_symbol
     )
开发者ID:adamchainz,项目名称:pyticketswitch,代码行数:9,代码来源:order.py


示例13: full_seatprice

 def full_seatprice(self):
     """Formatted string value of the full seatprice price with
     currency symbol.
     """
     return format_price_with_symbol(
         self._core_offer['full_seatprice'],
         self.currency.pre_symbol,
         self.currency.post_symbol
     )
开发者ID:babbageclunk,项目名称:pyticketswitch,代码行数:9,代码来源:base.py


示例14: price_combined

    def price_combined(self):
        """Formatted string value of the combined seatprice + surcharge with
        currency symbol.
        """

        combined_price = str(self.price_combined_float)

        return format_price_with_symbol(
            combined_price, self._core_currency.currency_pre_symbol, self._core_currency.currency_post_symbol
        )
开发者ID:babbageclunk,项目名称:pyticketswitch,代码行数:10,代码来源:availability.py


示例15: non_offer_combined

    def non_offer_combined(self):
        """Formatted string value of the original combined price with
        currency symbol (i.e. if there was no offer).
        """
        formatted_price = None

        combined_price = str(self.non_offer_combined_float)

        formatted_price = format_price_with_symbol(
            combined_price, self._core_currency.currency_pre_symbol, self._core_currency.currency_post_symbol
        )

        return formatted_price
开发者ID:babbageclunk,项目名称:pyticketswitch,代码行数:13,代码来源:availability.py


示例16: non_offer_surcharge

    def non_offer_surcharge(self):
        """Formatted string value of the full_surcharge with currency symbol.
        Returns None if doesn't exist.
        """

        if self._core_avail_detail.full_surcharge:
            return format_price_with_symbol(
                self._core_avail_detail.full_surcharge,
                self._core_currency.currency_pre_symbol,
                self._core_currency.currency_post_symbol,
            )

        return None
开发者ID:babbageclunk,项目名称:pyticketswitch,代码行数:13,代码来源:availability.py


示例17: absolute_saving

    def absolute_saving(self):
        """Formatted string value of the absolute_saving with currency symbol.
        Returns None if doesn't exist.
        """

        if self._core_avail_detail.absolute_saving:
            return format_price_with_symbol(
                self._core_avail_detail.absolute_saving,
                self._core_currency.currency_pre_symbol,
                self._core_currency.currency_post_symbol,
            )

        return None
开发者ID:babbageclunk,项目名称:pyticketswitch,代码行数:13,代码来源:availability.py


示例18: non_offer_surcharge

    def non_offer_surcharge(self):
        """Formatted string value of the original surcharge with
        currency symbol (i.e. if there was no offer).
        """
        surcharge = str(self.non_offer_surcharge_float)

        formatted_price = format_price_with_symbol(
            surcharge,
            self._core_currency.currency_pre_symbol,
            self._core_currency.currency_post_symbol
        )

        return formatted_price
开发者ID:KerwinMa,项目名称:pyticketswitch,代码行数:13,代码来源:availability.py


示例19: absolute_saving

    def absolute_saving(self):
        """Formatted string value of the absolute saving value with
        currency symbol.
        """

        ret_val = None

        if self.absolute_saving_float is not None:

            ret_val = format_price_with_symbol(
                self.absolute_saving_float,
                self.currency.pre_symbol,
                self.currency.post_symbol
            )
        return ret_val
开发者ID:babbageclunk,项目名称:pyticketswitch,代码行数:15,代码来源:base.py


示例20: min_combined_price

    def min_combined_price(self):
        """Formatted string value of the minimun combined price with
        currency symbol.
        """
        min_price = None
        cost_range = self._get_core_cost_range()

        if cost_range:

            min_price = format_price_with_symbol(
                cost_range.min_combined,
                cost_range.currency.currency_pre_symbol,
                cost_range.currency.currency_post_symbol
            )

        return min_price
开发者ID:babbageclunk,项目名称:pyticketswitch,代码行数:16,代码来源:base.py



注:本文中的pyticketswitch.util.format_price_with_symbol函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python util.resolve_boolean函数代码示例发布时间:2022-05-27
下一篇:
Python passmanager.Transformation类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap