Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AccountTypes = []AccountType{ASSETS, LIABILITIES, EQUITY, INCOME, EXPENSES}
AccountTypes is an array with the ordered accont types.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
Account represents an account which can be used in bookings.
func RetainedEarningsAccount ¶
func RetainedEarningsAccount() *Account
RetainedEarningsAccount returns the account for automatic valuation bookings.
func ValuationAccount ¶
func ValuationAccount() *Account
ValuationAccount returns the account for automatic valuation bookings.
type AccountType ¶
type AccountType int
AccountType is the type of an account.
const ( // ASSETS represents an asset account. ASSETS AccountType = iota // LIABILITIES represents a liability account. LIABILITIES // EQUITY represents an equity account. EQUITY // INCOME represents an income account. INCOME // EXPENSES represents an expenses account. EXPENSES )
func (AccountType) String ¶
func (t AccountType) String() string
Click to show internal directories.
Click to hide internal directories.