Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶ added in v1.1.0
func (Annotation) Equals ¶ added in v1.1.0
func (a Annotation) Equals(other Annotation) bool
func (Annotation) String ¶ added in v1.1.0
func (a Annotation) String() string
type Decimal ¶ added in v1.1.0
type Decimal int64 // "cents"
func ParseDecimal ¶ added in v1.1.0
func (Decimal) FloatString ¶ added in v1.1.0
func (Decimal) MarshalJSON ¶ added in v1.1.0
type Document ¶
type Document struct { ProgramName string ProgramVersion string GeneratedAt time.Time GeneratedBy string Type string OrgNo string CompanyName string AccountPlan string Accounts []Account Entries []Entry Starts time.Time Ends time.Time Annotations []Annotation }
func (*Document) AddEntriesFrom ¶ added in v1.4.0
func (*Document) CopyForAnnotation ¶ added in v1.1.0
func (d *Document) CopyForAnnotation(ann Annotation) *Document
func (*Document) CopyWithoutAnnotations ¶ added in v1.1.0
type Transaction ¶
type Transaction struct { AccountID int Annotations []Annotation Amount Decimal }
Click to show internal directories.
Click to hide internal directories.