add last_negative field to note

This commit is contained in:
Pierre-antoine Comby 2020-02-25 14:15:36 +01:00
parent 5421943fba
commit 33eba8a403
1 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,12 @@ class Note(PolymorphicModel):
help_text=_('in centimes, money credited for this instance'), help_text=_('in centimes, money credited for this instance'),
default=0, default=0,
) )
last_negative= models.DateTimeField(
verbose_name=_('last negative date'),
help_text=_('last time the balance was negative'),
null=True,
blank=True,
)
is_active = models.BooleanField( is_active = models.BooleanField(
_('active'), _('active'),
default=True, default=True,