Exemple #1
0
    def get_rate_choices(self, rates):
        choices = []

        for r in rates:
            description = EASYPOST_SERVICES.get(r['service'], None)
            if description:
                choices.append([r['id'], "%s %s" % (kishore_currency(r['rate']), description)])

        return choices
Exemple #2
0
 def formatted_price(self):
     return kishore_currency(self.price)