Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDuration ¶
Types ¶
type Entry ¶
type RecentTask ¶
type RecentTask struct {
ProjectID int64
ProjectName string
ClientName string
Task string
TotalSeconds int64
LastUsed time.Time
// Billing status across the task's finished entries, so a picker can
// show "2/3 invoiced" without listing every entry. Paid implies
// invoiced, so PaidCount <= InvoicedCount <= EntryCount.
EntryCount int
InvoicedCount int
PaidCount int
}
RecentTask is one distinct (project, task) pairing that's been tracked before, with its accumulated time across every finished entry -- for pickers that want to resume a specific named task rather than just start a bare project (see db.ListRecentTasks).