aba-generate
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,3 +5,3 @@ const moment = require('moment'); | ||
const toCents = number => | ||
const toCents = (number = 0) => | ||
new BigNumber(number) | ||
@@ -12,5 +12,5 @@ .round(2) | ||
const sum = totals => | ||
totals.reduce((p, v) => p.add(v), new BigNumber(0)).toFixed(2); | ||
totals.reduce((p, v) => p.add(new BigNumber(v)), new BigNumber(0)).toFixed(2); | ||
const difference = (credit, debit) => | ||
Math.abs(new BigNumber(credit).sub(debit).toFixed(2)); | ||
Math.abs(new BigNumber(credit).sub(new BigNumber(debit)).toFixed(2)); | ||
@@ -17,0 +17,0 @@ const PAYMENT_FORMAT = [ |
{ | ||
"name": "aba-generate", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "ABA file generation", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
158035