Module: crm/Integrations/BOE/Aggregate

Methods

(static) calcMargin(data) → {Number}

Calculate Margin

Parameters:
Name Type Description
data Array

arrays of revenue and cost

Source:
Returns:
Type
Number

(static) calcProfit(data) → {Number}

Calculate Profit

Parameters:
Name Type Description
data Array

arrays of revenue and cost

Source:
Returns:
Type
Number

(static) calcYoYMargin(data) → {Number}

Calculate YoY Margin

Parameters:
Name Type Description
data Array

arrays of revenue in the past year, cost in the past year, revenue between two years, and cost between two years

Source:
Returns:
Type
Number

(static) calcYoYProfit(data) → {Number}

Calculate YoY Profit

Parameters:
Name Type Description
data Array

arrays of revenue in the past year, cost in the past year, revenue between two years, and cost between two years

Source:
Returns:
Type
Number

(static) calcYoYRevenue(data) → {Number}

Calculate YoY Revenue

Parameters:
Name Type Description
data Array

array of revenue in the past year and revenue between a set of years

Source:
Returns:
Type
Number

(static) changeColor()

Change Color

Deprecated:
  • Yes
Source: