Skip to content

Commit f069b8e

Browse files
authored
Merge pull request #67 from ChillCoders-CapstoneDesign/feature/notification
refactor: 알림 코드 수정
2 parents 0f4e65e + b2f7d71 commit f069b8e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/com/project/submate/notification/service/NotificationScheduler.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ else if ("년".equals(s.getPeriodUnit())) {
8080

8181
// 2. 이번 달에 결제 예정이면 지출 누적합에 추가
8282
if (nextPayDate.getMonthValue() == today.getMonthValue() && nextPayDate.getYear() == today.getYear()) {
83-
totalSpending += s.getPrice();
83+
int price = s.getPrice();
84+
if ("$".equals(s.getPriceUnit())) {
85+
price *= 1360; // 환산
86+
}
87+
totalSpending += price;
8488
}
8589
}
8690

0 commit comments

Comments
 (0)