diff --git a/lib/batch/control.js b/lib/batch/control.js index b926551..aaf5b3f 100644 --- a/lib/batch/control.js +++ b/lib/batch/control.js @@ -60,7 +60,7 @@ module.exports = { width: 10, position: 7, required: true, - type: 'numeric' + type: 'alphanumeric' }, messageAuthenticationCode: { diff --git a/lib/batch/header.js b/lib/batch/header.js index f1d706b..ca21045 100644 --- a/lib/batch/header.js +++ b/lib/batch/header.js @@ -41,7 +41,7 @@ module.exports = { width: 10, position: 5, required: true, - type: 'numeric', + type: 'alphanumeric', value: '' }, diff --git a/lib/batch/index.js b/lib/batch/index.js index bfa0eca..0b8444f 100644 --- a/lib/batch/index.js +++ b/lib/batch/index.js @@ -13,7 +13,7 @@ function Batch(options) { // Allow the batch header/control defaults to be overriden if provided this.header = options.header ? _.merge(options.header, require('./header'), _.defaults) : _.cloneDeep(require('./header')); - this.control = options.control ? _.merge(options.header, require('./control'), _.defaults) : _.cloneDeep(require('./control')); + this.control = options.control ? _.merge(options.control, require('./control'), _.defaults) : _.cloneDeep(require('./control')); // Configure high-level overrides (these override the low-level settings if provided) utils.overrideLowLevel(highLevelHeaderOverrides, options, this);