Use integer as penalty_amount

This commit is contained in:
2023-08-24 18:11:13 +02:00
parent 83a82c17c6
commit 5dd56d9666
4 changed files with 8 additions and 7 deletions

View File

@ -24,10 +24,10 @@ namespace Elwig.Models {
[NotMapped]
public decimal? Abs {
get {
return AbsValue != null ? Season.DecFromDb((long)AbsValue) : null;
return AbsValue != null ? Season.DecFromDb(AbsValue.Value) : null;
}
set {
AbsValue = value != null ? Season.DecToDb((decimal)value) : null;
AbsValue = value != null ? Season.DecToDb(value.Value) : null;
}
}