We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba3f483 commit 3c2e893Copy full SHA for 3c2e893
src/main/kotlin/chapter01/Statement.kt
@@ -4,6 +4,10 @@ import java.text.NumberFormat
4
import java.util.Locale.US
5
6
fun statement(invoice: Invoice, plays: Plays): String {
7
+ return renderPlainText(plays, invoice)
8
+}
9
+
10
+private fun renderPlainText(plays: Plays, invoice: Invoice): String {
11
fun playFor(aPerformance: Performance): Play {
12
return plays[aPerformance.playID]!!
13
}
@@ -66,7 +70,6 @@ fun statement(invoice: Invoice, plays: Plays): String {
66
70
// 청구 내역을 출력한다.
67
71
result += " ${playFor(perf).name}: ${usd(amountFor(perf))} (${perf.audience}석)\n"
68
72
69
-
73
result += "총액: ${usd(totalAmount())}\n"
74
result += "적립 포인트: ${totalVolumeCredits()}점"
75
return result
0 commit comments