finance: fix allowance per day and rounding

pull/73/head
Christian Merten 1 year ago
parent 3087b8f8ee
commit 67e019073a
Signed by: christian.merten
GPG Key ID: D953D69721B948B3

@ -283,7 +283,7 @@ class Statement(CommonModel):
if self.excursion is None: if self.excursion is None:
return 0 return 0
return self.total_staff / self.excursion.staff_count return cvt_to_decimal(self.total_staff / self.excursion.staff_count)
@property @property
def total_staff(self): def total_staff(self):

@ -22,7 +22,7 @@ MAX_AGE_GOOD_CONDUCT_CERTIFICATE_MONTHS = 24
# finance # finance
ALLOWANCE_PER_DAY = 10 ALLOWANCE_PER_DAY = 22
MAX_NIGHT_COST = 11 MAX_NIGHT_COST = 11
CLOUD_LINK = 'https://nc.cloud-jdav-hd.de' CLOUD_LINK = 'https://nc.cloud-jdav-hd.de'

Loading…
Cancel
Save