콘텐츠 구매 - 대여만 가능한 경우 등록된 금액의 100%를 결제하도록 수정
This commit is contained in:
parent
487d3c9d6e
commit
c43faef14e
|
@ -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!!
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue