예제 #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
예제 #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
예제 #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
예제 #4
0
 def is_allowed(self, request: HttpRequest) -> bool:
     return get_cart_total(request) == 0
예제 #5
0
 def _total_order_value(self):
     return get_cart_total(self.request)
예제 #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
예제 #7
0
파일: checkoutflow.py 프로젝트: rixx/pretix
 def _total_order_value(self):
     return get_cart_total(self.request)
예제 #8
0
파일: payment.py 프로젝트: rixx/pretix
 def is_allowed(self, request: HttpRequest) -> bool:
     return get_cart_total(request) == 0