mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-21 01:48:21 +02:00
Link transactions and remittances
This commit is contained in:
@ -126,8 +126,7 @@ class Remittance(models.Model):
|
||||
def transactions(self):
|
||||
return SpecialTransaction.objects.filter(specialtransactionproxy__remittance=self)
|
||||
|
||||
@property
|
||||
def size(self):
|
||||
def count(self):
|
||||
return self.transactions.count()
|
||||
|
||||
@property
|
||||
@ -142,6 +141,9 @@ class Remittance(models.Model):
|
||||
|
||||
return ret
|
||||
|
||||
def __str__(self):
|
||||
return _("Remittance #{:d}: {}").format(self.id, self.comment, )
|
||||
|
||||
|
||||
class SpecialTransactionProxy(models.Model):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user