We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ed0d03 commit e85250eCopy full SHA for e85250e
refactoring/theatre-practice/statement.go
@@ -7,10 +7,7 @@ import (
7
"github.com/leekchan/accounting"
8
)
9
10
-type StatementPrinter struct {
11
- plays map[string]Play
12
- invoice Invoice
13
-}
+type StatementPrinter struct{}
14
15
type StatementData struct {
16
Customer string
@@ -28,9 +25,6 @@ type EnrichedPerformance struct {
28
25
}
29
26
30
27
func (s StatementPrinter) Print(invoice Invoice, plays map[string]Play) (string, error) {
31
- s.plays = plays
32
- s.invoice = invoice
33
-
34
statementData := StatementData{}
35
statementData.plays = plays
36
statementData.Customer = invoice.Customer
0 commit comments