Skip to content

No way to add company discretionary data to batch header #36

Description

@dadreggors

The add_batch method is set using BatchHader but excludes the discretionary header parameter:

data_types.py line 299 (defined field lengths for BatchHeader declares cmpy_dis_data as 20 charachters):

'cmpy_dis_data': 20,

data_types.py line 311 (init for BatchHeader has cmpy-dis-data):

def __init__(self, serv_cls_code='220', company_name='', cmpy_dis_data='',
                 company_id='', std_ent_cls_code='PPD', entry_desc='',
                 desc_date='', eff_ent_date='', orig_stat_code='',
                 orig_dfi_id='', batch_id=''):

builder.py line 63 then seems to ignore that field:

batch_header = BatchHeader(
            serv_cls_code=serv_cls_code,
            batch_id=batch_count,
            company_id=company_id or self.settings['company_id'],
            std_ent_cls_code=std_ent_cls_code,
            entry_desc=entry_desc,
            desc_date='',
            eff_ent_date=eff_ent_date.strftime('%y%m%d'),  # YYMMDD
            orig_stat_code='1',
            orig_dfi_id=self.settings['immediate_dest'][:8],
            company_name=self.settings['immediate_org_name']
        )

Is there another way to add that field?
Can you show it in the example if so?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions