new endpoints
This commit is contained in:
@@ -25,6 +25,37 @@ type Department struct {
|
||||
Code string `json:"code"`
|
||||
Name string `json:"name"`
|
||||
CostCenter string `json:"cost_center"`
|
||||
Active bool `json:"active"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
}
|
||||
|
||||
type CreateDepartmentRequest struct {
|
||||
Code string `json:"code"`
|
||||
Name string `json:"name"`
|
||||
CostCenter string `json:"cost_center"`
|
||||
Active bool `json:"active"`
|
||||
}
|
||||
|
||||
type GetDepartmentRequest struct {
|
||||
Code *string `json:"code"`
|
||||
Name *string `json:"name"`
|
||||
CostCenter *string `json:"cost_center"`
|
||||
}
|
||||
|
||||
type SetDepartmentActivity struct {
|
||||
Active bool `json:"active"`
|
||||
Code *string `json:"code"`
|
||||
Name *string `json:"name"`
|
||||
CostCenter *string `json:"cost_center"`
|
||||
}
|
||||
|
||||
type GLAccount struct {
|
||||
ID int `json:"id"`
|
||||
Code string `json:"code"`
|
||||
Description string `json:"description"`
|
||||
Type string `json:"type"` // revenue | cogs | opex | capex | headcount
|
||||
FavourHigh bool `json:"favour_high"` // true = over-budget is good (revenue accounts)
|
||||
Active bool `json:"active"`
|
||||
}
|
||||
|
||||
type GetDepartmentBudget struct {
|
||||
@@ -35,14 +66,6 @@ type GetDepartmentActual struct {
|
||||
Code string `json:"code"`
|
||||
}
|
||||
|
||||
type GLAccount struct {
|
||||
ID int `json:"id"`
|
||||
Code string `json:"code"`
|
||||
Description string `json:"description"`
|
||||
Type GLAccountType `json:"type"`
|
||||
FavourHigh bool `json:"favour_high"`
|
||||
}
|
||||
|
||||
type GetGLAccountBudget struct {
|
||||
Code string `json:"code"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user