entities

package
v0.0.0-...-a449dc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Details

func Details(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

List current company+user details

func List

List company's the user can administrate

func Open

Open a new year for accounting.

func ProjectSearch

func ProjectSearch(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Search(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

Types

type Debtor

type Debtor struct {
	Name         string
	Street1      string
	Street2      string
	VAT          string
	COC          string
	TAX          string // TODO: validate?
	NoteAdd      string
	BillingEmail []string
}

func GetDebtor

func GetDebtor(t *db.Txn, entity, debname string) (*Debtor, error)

type DetailRes

type DetailRes struct {
	User   *middleware.User
	Entity *middleware.Entity
}

type Project

type Project struct {
	Name         string
	Debtor       string
	BillingEmail []string
	NoteAdd      string
	HourRate     float64
	DueDays      int
	PO           string
	Street1      string
}

func GetProject

func GetProject(t *db.Txn, entity, prj string) (*Project, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL