Link transactions and remittances
This commit is contained in:
parent
95888ea316
commit
414722df18
7 changed files with 125 additions and 15 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue