Commit 6ab05fb
committed
Use enum directly for over-applied calculation type instead of string comparison
- Restore enum import: LoanOverAppliedCalculationType
- Replace string comparison with proper enum conversion using .valueOf()
- Use .toUpperCase() (ASCII, no Locale needed) to map 'percentage' → 'PERCENTAGE'
- Call .isPercentage() on enum for type-safe, idiomatic domain model usage
- Maintains compile-time safety and respects Fineract design patterns1 parent 0d5b7c3 commit 6ab05fb
File tree
1 file changed
+4
-1
lines changed- fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/serialization
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | | - | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
0 commit comments