Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Expense ¶
type Expense struct {
ID int64
SessionID sql.NullInt64
TypeID int64
Currency string
ReceiptRelPath sql.NullString
Notes sql.NullString
DateTime time.Time
}
Expense Methods: String, PreInsertValid, Valid, PreReportValid
func (Expense) PreInsertValid ¶
func (Expense) PreReportValid ¶
type ExpenseList ¶
type ExpenseList []Expense
Method: MapExpensesByCurrency
func (ExpenseList) MapExpensesByCurrency ¶
func (eList ExpenseList) MapExpensesByCurrency() (map[string]ExpenseList, error)
type ExpenseType ¶
ExpenseType Methods: String, PreInsertValid, Valid
func (ExpenseType) PreInsertValid ¶
func (et ExpenseType) PreInsertValid() error
func (ExpenseType) String ¶
func (et ExpenseType) String() string
func (ExpenseType) Valid ¶
func (et ExpenseType) Valid() error
type LineItemList ¶
type LineItemList []LineItem
Method: SumByTaxeRates
func (LineItemList) SumByTaxeRates ¶
func (liList LineItemList) SumByTaxeRates() (map[float64]float64, error)
This method consider Expense.Currency equality handled
type NullableTime ¶
Custom Nullable time.Time as the library sql doesn't have one
func (NullableTime) Equal ¶
func (nt NullableTime) Equal(other NullableTime) bool
func (*NullableTime) Scan ¶
func (nt *NullableTime) Scan(value interface{}) error
type Session ¶
type Session struct {
ID int64
ClientID int64
Location string
TripStartLocation sql.NullString
TripEndLocation sql.NullString
StartAtDateTime NullableTime
EndAtDateTime NullableTime
}
Session Methods: String, PreInsertValid, Valid, PreReportValid
func (Session) PreInsertValid ¶
func (Session) PreReportValid ¶
Click to show internal directories.
Click to hide internal directories.