handler

package
v0.0.0-...-8b64c4c Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateEarnings

func CalculateEarnings(hours float64) float64

CalculateEarnings calculates the earnings of the user based on the hours worked.

func ClockifyGetWorkHoursGroupByDate

func ClockifyGetWorkHoursGroupByDate(userId, workspaceId, start, end string)

ClockifyGetWorkHoursGroupByDate fetches the work hours of the user grouped by date.

func ClockifyGetWorkHoursGroupByProject

func ClockifyGetWorkHoursGroupByProject(userId, workspaceId string) *model.Invoice

ClockifyGetWorkHoursGroupByProject fetches the work hours of the user grouped by project.

func ClockifyGetWorkspace

func ClockifyGetWorkspace() (string, string)

ClockifyGetWorkspace fetches the default workspace and user id of the user.

func CreateSpreadsheet

func CreateSpreadsheet(invoice *model.Invoice)

CreateSpreadsheet creates a new spreadsheet.

func GetExchangeRates

func GetExchangeRates(usdCurrency float64) (phpCurrency float64)

GetExchangeRates fetches the latest exchange rates from the fxRatesApiUrl.

Types

This section is empty.

Jump to

Keyboard shortcuts

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