42 lines
709 B
Go
42 lines
709 B
Go
package types
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
type Verification struct {
|
|
Series string
|
|
Number int
|
|
}
|
|
|
|
type Invoice struct {
|
|
Number int
|
|
}
|
|
|
|
type BookkeepingAccountRow struct {
|
|
Verification Verification
|
|
Date time.Time
|
|
Description string
|
|
Project string
|
|
OrganizationUnit *string
|
|
LinkedVerifications []Verification
|
|
LinkedInvoices []Invoice
|
|
Debet int
|
|
Kredit int
|
|
}
|
|
|
|
type BookkeepingAccount struct {
|
|
Name string
|
|
AccountNumber int
|
|
Rows []BookkeepingAccountRow
|
|
}
|
|
|
|
type Organization struct {
|
|
Accounts []BookkeepingAccount
|
|
}
|
|
|
|
func (v Verification) String() string {
|
|
return fmt.Sprintf("%s%d", v.Series, v.Number)
|
|
}
|