Ejemplo n.º 1
0
 def _total_order_value(self):
     total = get_cart_total(self.request)
     total += sum([
         f.value for f in get_fees(self.request.event, self.request, total,
                                   self.invoice_address, None)
     ])
     return total
Ejemplo n.º 2
0
    def is_allowed(self, request: HttpRequest, total: Decimal = None) -> bool:
        from .services.cart import get_fees

        total = get_cart_total(request)
        total += sum([
            f.value for f in get_fees(self.event, request, total, None, None)
        ])
        return total == 0
Ejemplo n.º 3
0
    def is_allowed(self, request: HttpRequest, total: Decimal=None) -> bool:
        from .services.cart import get_fees

        total = get_cart_total(request)
        total += sum([f.value for f in get_fees(self.event, request, total, None, None)])
        return total == 0
Ejemplo n.º 4
0
 def is_allowed(self, request: HttpRequest) -> bool:
     return get_cart_total(request) == 0
Ejemplo n.º 5
0
 def _total_order_value(self):
     return get_cart_total(self.request)
Ejemplo n.º 6
0
 def _total_order_value(self):
     total = get_cart_total(self.request)
     total += sum([f.value for f in get_fees(self.request.event, self.request, total, self.invoice_address, None)])
     return total
Ejemplo n.º 7
0
 def _total_order_value(self):
     return get_cart_total(self.request)
Ejemplo n.º 8
0
 def is_allowed(self, request: HttpRequest) -> bool:
     return get_cart_total(request) == 0