SPF-UiO / spbm

The Student Personnel Booking Manager, by and for the Student Cellar Pub Personnel Organsiation at the University of Oslo.
6 stars 4 forks source link

Correct number of decimal places for postgresql annotation of invoices #13

Open thor opened 7 years ago

thor commented 7 years ago

This involves either rounding the invoices data when it multiplied with each other, or using the Python format tools to correct it.

Initially I used

models.DecimalField(decimal_places=2)

which didn't help, oddly enough on postgres, which has been changed to

models.DecimalField()

in 2e17503f76b34d7d9c9eb437f45069b40d345182 for the meanwhile. These details can be seen in spbm/apps/society/models.py.

thor commented 6 years ago

Seeing as I've tried to fix this myself, and somewhat failed (let's be honest here), this is more of a help wanted situation.