From e2be2d2fe6a986942e106d018aa0dc9cf744a097 Mon Sep 17 00:00:00 2001 From: EJ Legarda Date: Fri, 4 Feb 2022 21:06:17 -0500 Subject: [PATCH 1/3] fixed missing sequence when trace number is assigned a value --- lib/file/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file/index.js b/lib/file/index.js index bb74223..485b63d 100644 --- a/lib/file/index.js +++ b/lib/file/index.js @@ -110,7 +110,7 @@ File.prototype.generateBatches = function(done1) { totalCredit += batch.control.totalCredit.value; async.each(batch._entries, function(entry, done3) { - entry.fields.traceNumber.value = ( entry.fields.traceNumber.value) ? entry.fields.traceNumber.value : self.header.immediateOrigin.value.slice(0,8) + utils.pad(addendaCount, 7, false, '0'); + entry.fields.traceNumber.value = ( entry.fields.traceNumber.value ? entry.fields.traceNumber.value : self.header.immediateOrigin.value.slice(0,8) ) + utils.pad(addendaCount, 7, false, '0'); entryHash += Number(entry.fields.receivingDFI.value); // Increment the addenda and block count From 79f6408e2f8d797c33e91e492b357ff4620fd06c Mon Sep 17 00:00:00 2001 From: EJ Legarda Date: Fri, 4 Feb 2022 21:56:51 -0500 Subject: [PATCH 2/3] updated package.json --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b6e0008..df11927 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "nach2", + "name": "nach2-aimpoint", "description": "nACH is a highly customizable Node.js module exposing a high & low-level API for generating ACH files for use within the ACH network", "version": "0.5.1", "keywords": [ @@ -8,6 +8,10 @@ "Automated Clearing House" ], "contributors": [ + { + "name": "EJ Legarda", + "email": "ej@aimpoint.co" + }, { "name": "Glen Selle", "email": "glenselle@me.com" @@ -24,7 +28,7 @@ ], "repository": { "type": "git", - "url": "https://github.com/zipline/nACH.git" + "url": "https://github.com/ejlegarda/nACH2.git" }, "engines": { "node": ">= 0.10.0" From ea3f7c057e9b6969f0b11720fd23b258f7aa42d6 Mon Sep 17 00:00:00 2001 From: EJ Legarda Date: Fri, 4 Feb 2022 22:15:25 -0500 Subject: [PATCH 3/3] updated package.json --- README.md | 12 ++++++------ package.json | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index eb37ad0..451b842 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# nACH2 +# nACH2-aimpoint -[![npm](https://img.shields.io/npm/v/nach2.svg?maxAge=2592000)](https://www.npmjs.com/package/nach2) -[![Travis](https://img.shields.io/travis/glenselle/nACH.svg?maxAge=2592000)](https://travis-ci.org/glenselle/nACH) +[![npm](https://img.shields.io/npm/v/nach2-aimpoint.svg?maxAge=2592000)](https://www.npmjs.com/package/nach2-aimpoint) +[![Travis](https://img.shields.io/travis/aimpoint/nACH.svg?maxAge=2592000)](https://travis-ci.com/aimpoint/nACH) [![Dependencies](https://david-dm.org/zipline/nACH.svg)](https://david-dm.org/zipline/nACH) nACH is a Node.js module exposing both a high & low-level API for generating ACH (Automated Clearing House) files for use within the ACH network. It's design makes it a high-performance, dependable and frustration-free solution for developers. @@ -11,12 +11,12 @@ nACH is a Node.js module exposing both a high & low-level API for generating ACH ## Getting Started To intall nACH, use NPM: - $ npm i nach2 --save-dev + $ npm i nach2-aimpoint --save-dev Then include the NPM module like so: ```js -const nach = require('nach2') +const nach = require('nach2-aimpoint') ``` Now you're ready to start creating ACH files. @@ -156,7 +156,7 @@ Test coverage is currently a work in progress. To run: The MIT License (MIT) -Copyright (c) 2016 Glen Selle +Copyright (c) 2022 EJ Legarda Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package.json b/package.json index df11927..caf2f53 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "nach2-aimpoint", "description": "nACH is a highly customizable Node.js module exposing a high & low-level API for generating ACH files for use within the ACH network", - "version": "0.5.1", + "version": "0.5.2", "keywords": [ + "NACHA", "ACH", "file", "Automated Clearing House"