Revised the cash report template.

This commit is contained in:
2020-07-06 23:58:47 +08:00
parent cd7d7a5106
commit 37e793f340
2 changed files with 77 additions and 24 deletions

View File

@ -94,6 +94,13 @@ class Transaction(models.Model):
credit_sum = sum([x.amount for x in self.credit_records])
return debit_sum == credit_sum
@property
def has_order_hole(self):
"""Whether the order of the transactions on this day is not
1, 2, 3, 4, 5..., and should be reordered. """
# TODO: To be done
return False
@property
def is_cash_income(self):
"""Whether this transaction is a cash income transaction."""