Expanded recurring transactions.

This commit is contained in:
James Cole
2014-11-13 16:13:32 +01:00
parent 4a20c008ff
commit 840dfa6696
15 changed files with 459 additions and 193 deletions

View File

@@ -200,9 +200,7 @@ function googleSankeyChart(URL, container) {
Format as money
*/
console.log(gdata.getNumberOfRows())
if (gdata.getNumberOfRows() < 1) {
console.log('remove');
$('#' + container).parent().parent().remove();
return;
} else if (gdata.getNumberOfRows() < 6) {
@@ -261,7 +259,6 @@ function googleTable(URL, container) {
for (var i = 0; i < x; i++) {
var label = gdata.getColumnLabel(i);
console.log('Column ' + i + ':' + label);
/*
Format a string using the previous column as URL.
*/
@@ -282,7 +279,7 @@ function googleTable(URL, container) {
/*
Format as money
*/
if (label == 'Amount' || label == 'Balance') {
if (label == 'Amount' || label == 'Balance' || label == 'Minimum amount' || label == 'Maximum amount') {
money.format(gdata, i);
}