ledger-pivot
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -28,3 +28,5 @@ // Generated by LiveScript 1.5.0 | ||
log("run command: " + cmd); | ||
return Cp.exec(cmd, function(err, stdout, stderr){ | ||
return Cp.exec(cmd, { | ||
maxBuffer: 1000 * 1024 | ||
}, function(err, stdout, stderr){ | ||
if (err) { | ||
@@ -31,0 +33,0 @@ return cb(err); |
@@ -22,13 +22,19 @@ // Generated by LiveScript 1.5.0 | ||
return cb(null, _.map(parsed.data, function(it){ | ||
var date, code, payee, account, commodity, amount, status, notes, tx, i$, i; | ||
var date, code, payee, account, commodity, amount, status, notes, d, y, m, tx, i$, i; | ||
date = it[0], code = it[1], payee = it[2], account = it[3], commodity = it[4], amount = it[5], status = it[6], notes = it[7]; | ||
d = new Date(date); | ||
y = d.getUTCFullYear() + ((m = d.getUTCMonth() < 3) ? 0 : 1); | ||
if (m === 3 && d.getUTCDate() < 6) { | ||
y--; | ||
} | ||
tx = { | ||
AgeYears: M().subtract(1, 'month').endOf('month').diff(new Date(date), 'years'), | ||
AgeYears: M().subtract(1, 'month').endOf('month').diff(d, 'years'), | ||
Amount: amount, | ||
Code: code, | ||
Commodity: commodity, | ||
Date: date, | ||
Code: code, | ||
Notes: notes, | ||
Payee: payee, | ||
Commodity: commodity, | ||
Amount: amount, | ||
Status: status, | ||
Notes: notes | ||
TaxYear: (y - 1) + "/" + y | ||
}; | ||
@@ -35,0 +41,0 @@ for (i$ = 0; i$ <= 3; ++i$) { |
{ | ||
"name": "ledger-pivot", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "View ledger transactions in a pivot-table in a web browser.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1775119
30392