콘텐츠 구매 - 대여만 가능한 경우 등록된 금액의 100%를 결제하도록 수정

This commit is contained in:
Klaus 2023-10-20 23:05:12 +09:00
parent 487d3c9d6e
commit c43faef14e
1 changed files with 2 additions and 2 deletions

View File

@ -41,8 +41,8 @@ data class Order(
@JoinColumn(name = "content_id", nullable = false)
var audioContent: AudioContent? = null
set(value) {
can = if (type == OrderType.RENTAL) {
ceil(value?.price!! * 0.6).toInt()
can = if (type == OrderType.RENTAL && !value?.isOnlyRental!!) {
ceil(value.price * 0.6).toInt()
} else {
value?.price!!
}