Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adult ¶
type Adult struct {
Name string
Surname string
SecondSurname string
TaxID string
Role string
Address Address
Email string
MobilePhone string
HomePhone string
GrandMotherPhone string
GrandParentPhone string
WorkPhone string
BirthDate time.Time
Nationality string
}
func (Adult) MobilePhoneFmt ¶
func (Adult) NameSurnameFmt ¶
type Child ¶
type Child struct {
Code int
Name string
Surname string
SecondSurname string
TaxID string
BirthDate time.Time
Group string
Note string
Active bool
}
func (Child) NameAndSurname ¶
func (Child) NameWithCode ¶
type Consumption ¶
type Consumption struct {
Code string
ChildCode int
ProductID string
Units float64
YearMonth string
IsRectification bool
InvoiceCode string
}
func (Consumption) String ¶
func (c Consumption) String() string
type Customer ¶
type Customer struct {
Id int
Active bool
Children []Child
Adults []Adult
InvoiceHolder InvoiceHolder
Note interface{}
Language string
}
func (Customer) ChildrenNames ¶
func (Customer) FirstAdult ¶
func (Customer) FirstAdultName ¶
func (Customer) FirstAdultNameWithCode ¶
type Invoice ¶
type Invoice struct {
Code string
CustomerID int
Date time.Time
YearMonth string
ChildrenCodes []int
Lines []Line
PaymentType string
Note string
Emailed bool
Printed bool
SentToBank bool
}
func (Invoice) PaymentFmt ¶
type InvoiceHolder ¶
type InvoiceHolder struct {
Name string
TaxID string
Address Address
Email string
SendEmail bool
PaymentType string
BankAccount string
IsBusiness bool
}
func (InvoiceHolder) BankAccountFmt ¶
func (i InvoiceHolder) BankAccountFmt() string
func (InvoiceHolder) Mail ¶
func (i InvoiceHolder) Mail() string
func (InvoiceHolder) PaymentInfoFmt ¶
func (i InvoiceHolder) PaymentInfoFmt() string
Click to show internal directories.
Click to hide internal directories.