Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix trace sequence #35

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/file/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"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",
"version": "0.5.2",
"keywords": [
"NACHA",
"ACH",
"file",
"Automated Clearing House"
],
"contributors": [
{
"name": "EJ Legarda",
"email": "[email protected]"
},
{
"name": "Glen Selle",
"email": "[email protected]"
Expand All @@ -24,7 +29,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/zipline/nACH.git"
"url": "https://github.com/ejlegarda/nACH2.git"
},
"engines": {
"node": ">= 0.10.0"
Expand Down