Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Calculate ¶
func Calculate(input types.TaskBillingInput, groupRatio float64) (*types.TaskBillingResult, error)
func GetRateCardsCopy ¶
func HasRateCard ¶
func ValidateRateCardsJSON ¶
Types ¶
type RateCard ¶
type RateCard struct {
Vendor string `json:"vendor,omitempty"`
Unit string `json:"unit,omitempty"`
QuantityField string `json:"quantity_field,omitempty"`
DefaultQuantity float64 `json:"default_quantity,omitempty"`
Strict bool `json:"strict"`
Defaults map[string]string `json:"defaults,omitempty"`
Rows []RateCardRow `json:"rows"`
}
func GetRateCardCopy ¶
type RateCardRow ¶
type TaskBillingSetting ¶
Click to show internal directories.
Click to hide internal directories.