We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f4e65e + b2f7d71 commit f069b8eCopy full SHA for f069b8e
1 file changed
src/main/java/com/project/submate/notification/service/NotificationScheduler.java
@@ -80,7 +80,11 @@ else if ("년".equals(s.getPeriodUnit())) {
80
81
// 2. 이번 달에 결제 예정이면 지출 누적합에 추가
82
if (nextPayDate.getMonthValue() == today.getMonthValue() && nextPayDate.getYear() == today.getYear()) {
83
- totalSpending += s.getPrice();
+ int price = s.getPrice();
84
+ if ("$".equals(s.getPriceUnit())) {
85
+ price *= 1360; // 환산
86
+ }
87
+ totalSpending += price;
88
}
89
90
0 commit comments