Skip to content

Commit 798df85

Browse files
authored
Merge pull request #948 from hdoupe/fix-zeros
No longer need to scale numbers
2 parents 1c52554 + 2f6f87a commit 798df85

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

RELEASES.md

+12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ Go
44
[here](https://github.com/OpenSourcePolicyCenter/PolicyBrain/pulls?q=is%3Apr+is%3Aclosed)
55
for a complete commit history.
66

7+
Release 1.7.6 on 2018-11-09
8+
----------------------------
9+
**Major Changes**
10+
- None
11+
12+
**Minor Changes**
13+
- None
14+
15+
**Bug Fixes**
16+
- [#948](https://github.com/ospc-org/ospc.org/pull/948) - No longer need to scale numbers - Hank Doupe
17+
18+
719
Release 1.7.5 on 2018-11-07
820
----------------------------
921
**Major Changes**

static/js/taxbrain-tablebuilder.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ $(function() {
4646
var j = 0;
4747
_.each(row.cells, function(cell) {
4848
if (_.isEmpty(cell.year_values)) {
49-
that.get('rows')[i]['cells'][j]['tot_value'] = that.numberWithCommas((parseFloat(cell.value / cell.format.divisor)).toFixed(cell.format.decimals));
49+
that.get('rows')[i]['cells'][j]['tot_value'] = that.numberWithCommas((parseFloat(cell.value)).toFixed(cell.format.decimals));
5050
} else {
5151
_.each(_.keys(cell.year_values), function(year) {
52-
that.get('rows')[i]['cells'][j]['year_values'][year] = that.numberWithCommas((parseFloat(cell.year_values[year] / cell.format.divisor)).toFixed(cell.format.decimals));
52+
that.get('rows')[i]['cells'][j]['year_values'][year] = that.numberWithCommas((parseFloat(cell.year_values[year])).toFixed(cell.format.decimals));
5353
});
5454
}
5555
j++;

staticfiles/js/taxbrain-tablebuilder.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ $(function() {
4646
var j = 0;
4747
_.each(row.cells, function(cell) {
4848
if (_.isEmpty(cell.year_values)) {
49-
that.get('rows')[i]['cells'][j]['tot_value'] = that.numberWithCommas((parseFloat(cell.value / cell.format.divisor)).toFixed(cell.format.decimals));
49+
that.get('rows')[i]['cells'][j]['tot_value'] = that.numberWithCommas((parseFloat(cell.value)).toFixed(cell.format.decimals));
5050
} else {
5151
_.each(_.keys(cell.year_values), function(year) {
52-
that.get('rows')[i]['cells'][j]['year_values'][year] = that.numberWithCommas((parseFloat(cell.year_values[year] / cell.format.divisor)).toFixed(cell.format.decimals));
52+
that.get('rows')[i]['cells'][j]['year_values'][year] = that.numberWithCommas((parseFloat(cell.year_values[year])).toFixed(cell.format.decimals));
5353
});
5454
}
5555
j++;

webapp/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
]
5959

6060

61-
WEBAPP_VERSION = "1.7.5"
61+
WEBAPP_VERSION = "1.7.6"
6262

6363
# Application definition
6464

0 commit comments

Comments
 (0)