This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var React = require('react'); | |
| var Colors = require('client/ui/Colors'); | |
| var SmartCSS = require('SmartCSS'); | |
| var ProgressBar = require('client/ui/generic/ProgressBar'); | |
| var Icon = require('client/ui/icons/Icon'); | |
| var tinycolor = require('tinycolor'); | |
| var utils = require('utils'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT cod_fam, | |
| nome_fam, | |
| id_vendedor, | |
| nome_vendedor, | |
| id_zona, | |
| conta_cli, | |
| sub_conta_cli, | |
| nome_cli, | |
| Sum(venda1) AS VENDAS1, | |
| Sum(venda2) AS VENDAS2, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT cod_fam, | |
| nome_fam, | |
| id_vendedor, | |
| nome_vendedor, | |
| id_zona, | |
| conta_cli, | |
| sub_conta_cli, | |
| nome_cli, | |
| Sum(venda1) AS VENDAS1, | |
| Sum(venda2) AS VENDAS2, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function weightedAverage(v, w) { | |
| var sum_v = 0; | |
| var sum_w = 0; | |
| if(!v || !w){ | |
| return "#ERROR: You need 2 arguments."; | |
| } | |
| if (v.length != w.length) { | |
| return "#ERROR: Incorrect number of values and weights"; | |
| } | |
| var i = v.length; |
OlderNewer