(self)
return invoices.aggregate(
            total_balance=Sum('balance')
        ).get('total_balance') or 0.00
Returns the total balance of unpaid, unhidden invoices.
        Doesn't take into account the view settings on the page.
Returns the total balance of unpaid, unhidden invoices.
        Doesn't take into account the view settings on the page.
Returns the total balance of unpaid unhidden invoices . Doesn t take into account the view settings on the page .
def total_balance(self):
        """
        Returns the total balance of unpaid, unhidden invoices.
        Doesn't take into account the view settings on the page.
        """
        invoices = (Invoice.objects
                    .filter(subscription__subscriber__domain=self.domain)
                    .filter(date_paid__exact=None)
                    .filter(is_hidden=False))
        return invoices.aggregate(
            total_balance=Sum('balance')
        ).get('total_balance') or 0.00
def total_balance ( self ) : invoices = ( Invoice . objects . filter ( subscription__subscriber__domain = self . domain ) . filter ( date_paid__exact = None ) . filter ( is_hidden = False ) ) return invoices . aggregate ( total_balance = Sum ( 'balance' ) ) . get ( 'total_balance' ) or 0.00