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