parent
dc2cda58b2
commit
0c8241fba7
|
@ -948,7 +948,7 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
||||||
putExtra(
|
putExtra(
|
||||||
"can",
|
"can",
|
||||||
if (orderType == OrderType.RENTAL) {
|
if (orderType == OrderType.RENTAL) {
|
||||||
ceil(audioContent.price * 0.6).toInt()
|
ceil(audioContent.price * 0.7).toInt()
|
||||||
} else {
|
} else {
|
||||||
audioContent.price
|
audioContent.price
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,14 +65,14 @@ class AudioContentOrderConfirmDialog(
|
||||||
if (SharedPreferenceManager.userId == 17958L) {
|
if (SharedPreferenceManager.userId == 17958L) {
|
||||||
dialogView.ivCan.visibility = View.GONE
|
dialogView.ivCan.visibility = View.GONE
|
||||||
dialogView.tvPrice.text = if (orderType == OrderType.RENTAL && !isOnlyRental) {
|
dialogView.tvPrice.text = if (orderType == OrderType.RENTAL && !isOnlyRental) {
|
||||||
"${(ceil(price * 0.6).toInt() * 110).moneyFormat()}원"
|
"${(ceil(price * 0.7).toInt() * 110).moneyFormat()}원"
|
||||||
} else {
|
} else {
|
||||||
"${(price * 110).moneyFormat()}원"
|
"${(price * 110).moneyFormat()}원"
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dialogView.ivCan.visibility = View.VISIBLE
|
dialogView.ivCan.visibility = View.VISIBLE
|
||||||
dialogView.tvPrice.text = if (orderType == OrderType.RENTAL && !isOnlyRental) {
|
dialogView.tvPrice.text = if (orderType == OrderType.RENTAL && !isOnlyRental) {
|
||||||
ceil(price * 0.6).toInt().moneyFormat()
|
ceil(price * 0.7).toInt().moneyFormat()
|
||||||
} else {
|
} else {
|
||||||
price.moneyFormat()
|
price.moneyFormat()
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,10 +53,10 @@ class AudioContentOrderFragment(
|
||||||
} else {
|
} else {
|
||||||
if (SharedPreferenceManager.userId == 17958L) {
|
if (SharedPreferenceManager.userId == 17958L) {
|
||||||
binding.tvKeep.text = "${(price * 110).moneyFormat()}원"
|
binding.tvKeep.text = "${(price * 110).moneyFormat()}원"
|
||||||
binding.tvRental.text = "${(ceil(price * 0.6).toInt() * 110).moneyFormat()}원"
|
binding.tvRental.text = "${(ceil(price * 0.7).toInt() * 110).moneyFormat()}원"
|
||||||
} else {
|
} else {
|
||||||
binding.tvKeep.text = price.moneyFormat()
|
binding.tvKeep.text = price.moneyFormat()
|
||||||
binding.tvRental.text = ceil(price * 0.6).toInt().moneyFormat()
|
binding.tvRental.text = ceil(price * 0.7).toInt().moneyFormat()
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.rlKeep.visibility = View.VISIBLE
|
binding.rlKeep.visibility = View.VISIBLE
|
||||||
|
|
Loading…
Reference in New Issue