mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-30 21:11:15 +02:00
@ -358,7 +358,7 @@ class SogeCredit(models.Model):
|
||||
def invalidate(self):
|
||||
"""
|
||||
Invalidating a Société générale delete the transaction of the bank if it was already created.
|
||||
Treasurers must know what they do, With Great Power Comes Great Responsibility...
|
||||
Treasurers must know what they do, With Great Power Comes Great Responsibility…
|
||||
"""
|
||||
if self.valid:
|
||||
self.credit_transaction.valid = False
|
||||
@ -422,7 +422,7 @@ class SogeCredit(models.Model):
|
||||
"""
|
||||
Deleting a SogeCredit is equivalent to say that the Société générale didn't pay.
|
||||
Treasurers must know what they do, this is difficult to undo this operation.
|
||||
With Great Power Comes Great Responsibility...
|
||||
With Great Power Comes Great Responsibility…
|
||||
"""
|
||||
|
||||
total_fee = sum(transaction.total for transaction in self.transactions.all() if not transaction.valid)
|
||||
|
Reference in New Issue
Block a user