@property
    def is_credit(self):
        if self.total < 0:
            return True
        else: return False
Check if the invoice is a credit invoice
dataset/ETHPy150Open bread-and-pepper/django-brookie/brookie/models.py/Invoice.is_credit