From c43faef14e340c4c6a35d3ea4660a9e2c7323186 Mon Sep 17 00:00:00 2001 From: Klaus Date: Fri, 20 Oct 2023 23:05:12 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EA=B5=AC?= =?UTF-8?q?=EB=A7=A4=20-=20=EB=8C=80=EC=97=AC=EB=A7=8C=20=EA=B0=80?= =?UTF-8?q?=EB=8A=A5=ED=95=9C=20=EA=B2=BD=EC=9A=B0=20=EB=93=B1=EB=A1=9D?= =?UTF-8?q?=EB=90=9C=20=EA=B8=88=EC=95=A1=EC=9D=98=20100%=EB=A5=BC=20?= =?UTF-8?q?=EA=B2=B0=EC=A0=9C=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/kr/co/vividnext/sodalive/content/order/Order.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/order/Order.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/order/Order.kt index 9458436..be6d76a 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/order/Order.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/order/Order.kt @@ -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!! }