(self)
return sum([credit.amount for credit in self.creditadjustment_set.all()])
The total amount of credit applied specifically to this LineItem.
The total amount of credit applied specifically to this LineItem.
The total amount of credit applied specifically to this LineItem .
def applied_credit(self):
        """
        The total amount of credit applied specifically to this LineItem.
        """
        if self.creditadjustment_set.count() == 0:
            return Decimal('0.0000')
        return sum([credit.amount for credit in self.creditadjustment_set.all()])
def applied_credit ( self ) : if self . creditadjustment_set . count ( ) == 0 : return Decimal ( '0.0000' ) return sum ( [ credit . amount for credit in self . creditadjustment_set . all ( ) ] )