Added 'supply' page to create negative register transactions, updated translation

This commit is contained in:
W13R 2022-10-15 19:37:01 +02:00
parent 80b407069d
commit 86ea7c0000
10 changed files with 278 additions and 68 deletions

View file

@ -21,6 +21,7 @@ class User(AbstractUser):
balance = models.DecimalField(max_digits=8, decimal_places=2, default=0.00)
allow_order_with_negative_balance = models.BooleanField(default=False)
profile_picture_filename = models.CharField(default="default.svg", max_length=25)
allowed_to_supply = models.BooleanField(default=False)
def delete(self, *args, **kwargs):
self.balance = 0