Differentiate billable/non-billable
This commit is contained in:
parent
43845d28f1
commit
0d027788f1
@ -130,7 +130,14 @@ func (s Service) String() string {
|
||||
return fmt.Sprintf("%d: %s", s.ID, s.Name)
|
||||
}
|
||||
func (s Service) GetID() int { return s.ID }
|
||||
func (s Service) GetName() string { return s.Name }
|
||||
func (s Service) GetName() string {
|
||||
prefix := "💰"
|
||||
if !s.Billable {
|
||||
prefix = "☮️"
|
||||
}
|
||||
return prefix + " " + s.Name
|
||||
|
||||
}
|
||||
|
||||
func (a APIClient) GetServices() (Services, error) {
|
||||
// GET /services.json
|
||||
|
Loading…
x
Reference in New Issue
Block a user