Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Antall dager per uke og stillingsprosent kan ha desimaler fra Arena. #1234

Merged
merged 9 commits into from
Dec 13, 2024

Conversation

sindredl
Copy link
Contributor

@sindredl sindredl commented Dec 9, 2024

Når vi skal hente inn meldinger fra Arena, henter vi inn bla. antall dager per uke feltet. Dette feltet kommer med desimaler fra Arena.
Endrer fra int til numeric i databasen og fra Integer til Double i koden.

Det er kommet informasjon nå fra Arena at også stillingprosent har desimaler, dermed er denne endringen gjort på det feltet også.

@sindredl sindredl requested review from Oddsor and eirikv December 9, 2024 09:41
if (sumUtgifter == null || stillingsProsent == null || stillingsProsent == 0) {
return null;
}
return (sumUtgifter * 100) / stillingsProsent;
return (int) Math.round((sumUtgifter * 100) / stillingsProsent);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Antar dette er greit å gjøre.

@sindredl sindredl changed the title Antall dager per uke kan ha desimaler fra Arena. Antall dager per uke og stillingsprosent kan ha desimaler fra Arena. Dec 9, 2024
Copy link
Contributor

@Oddsor Oddsor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@Oddsor Oddsor force-pushed the antall-dager-per-uke-desimaler branch from 2ef3c8e to 8e967eb Compare December 11, 2024 12:39
@eirikv eirikv force-pushed the antall-dager-per-uke-desimaler branch from a9414ce to c1bda96 Compare December 13, 2024 08:38
@eirikv eirikv merged commit 9d313d7 into master Dec 13, 2024
3 checks passed
@eirikv eirikv deleted the antall-dager-per-uke-desimaler branch December 13, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants