Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TotalOverdue ¶
TotalOverdue return sum of all overdue payments in database.
func TotalPayed ¶
TotalPayed returns sum of all payed payments in database.
Types ¶
type Payment ¶
type Payment struct { ID int `db:"id" json:"id"` PhaseID int `db:"phase_id" json:"phase_id"` Amount int `db:"amount" json:"amount"` Payed bool `db:"payed" json:"payed"` DateDue time.Time `db:"date_due" json:"date_due"` DatePayed null.Time `db:"date_payed" json:"date_payed"` }
func ForProjectID ¶
ForProject returns all payments for specified project.
Click to show internal directories.
Click to hide internal directories.