test #53

Merged
klaus merged 10 commits from test into main 2023-10-24 10:42:11 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit c43faef14e - Show all commits

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!!
}