Restored the missing _has_order_hole attribute to the accounting transaction model.

This commit is contained in:
依瑪貓 2020-07-07 19:32:19 +08:00
parent bf20fc8a72
commit 83f97a6467

View File

@ -109,6 +109,8 @@ class Transaction(models.Model):
return Transaction.objects.filter( return Transaction.objects.filter(
date=self.date).count() > 1 date=self.date).count() > 1
_has_order_hole = None
@property @property
def has_order_hole(self): def has_order_hole(self):
"""Whether the order of the transactions on this day is not """Whether the order of the transactions on this day is not