wilix-team / node-nach Goto Github PK
View Code? Open in Web Editor NEWThis project forked from glenselle/nach2
nACH file parser and generator for ACH network
This project forked from glenselle/nach2
nACH file parser and generator for ACH network
It seems that the entry addenda count addendaCount
is incorrect because it does not count the addenda items.
Has anyone encountered this issue?
--- CODE
let batch = new nach.Batch({
serviceClassCode: '220', // 200 ceb and deb, 220 credit only, 225 debit only
companyName: 'XXXXXX',
standardEntryClassCode: 'CCD', // PPD consumer, CCD or CTX business
companyIdentification: XXXXX, // FEIN
companyEntryDescription: 'Safe deposit',
companyDescriptiveDate: moment(nach.Utils.computeBusinessDay(0)).format('MMM D'),
effectiveEntryDate: nach.Utils.computeBusinessDay(0),
originatingDFI:XXXX // first 8 digits of routing
});
no gbox
ADDD moment("2018-07-01T02:11:45.274") 0
/home/ubuntu/emailparse/node_modules/moment/moment.js:2618
if ((isObject(input) && isObjectEmpty(input)) ||
^
--- ERROR
RangeError: Maximum call stack size exceeded
at createLocalOrUTC (/home/ubuntu/emailparse/node_modules/moment/moment.js:2618:33)
at createLocal (/home/ubuntu/emailparse/node_modules/moment/moment.js:2635:16)
at hooks (/home/ubuntu/emailparse/node_modules/moment/moment.js:12:29)
at module.exports.isBusinessDay (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:137:11)
at addDays (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:149:9)
at addDays (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:152:56)
at addDays (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:152:56)
at addDays (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:152:56)
at addDays (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:152:56)
at addDays (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:152:56)
--- STACK TRACE before error
(node:21243) ExperimentalWarning: The ESM module loader is experimental.
CONN Database { open: true, filename: 'trans.sqlite', mode: 2 } undefined
MAIL Sun Jul 01 2018 03:23:00 GMT+0000 (Coordinated Universal Time) 570
no gbox
day, counter. businessDays moment("2018-07-01T03:23:00.936") 0 0
Error
at Object.module.exports.computeBusinessDay (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:146:14)
at nachFile (file:///home/ubuntu/emailparse/nach.mjs:25:47)
at depositInsert (file:///home/ubuntu/emailparse/msg.mjs:58:16)
at handleMsg (file:///home/ubuntu/emailparse/msg.mjs:219:7)
at EventEmitter. (file:///home/ubuntu/emailparse/index.mjs:105:9)
at Object.onceWrapper (events.js:273:13)
at EventEmitter.emit (events.js:182:13)
at /home/ubuntu/emailparse/node_modules/imap/lib/Connection.js:1470:22
at process._tickCallback (internal/process/next_tick.js:61:11)
LOOP moment("2018-07-01T03:23:00.936") 0
LOOP moment("2018-07-02T03:23:00.936") 1
LOOP moment("2018-07-03T03:23:00.936") 2
LOOP moment("2018-07-04T03:23:00.936") 3
LOOP moment("2018-07-05T03:23:00.936") 4
The string it self is 94 characters, the entry string do not have \r\n only \n
For example, if the 'Reference Code' field in the File Header is left empty, a nACHError is thrown even though the file is in the correct format.
The issue seems to be with alphanumericRegex
specified in lib.validate.js
. It does not recognize empty strings
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.