本文整理汇总了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;未经允许,请勿转载。 |
请发表评论