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

About batch number #13

Open
alonstar opened this issue Mar 8, 2018 · 2 comments
Open

About batch number #13

alonstar opened this issue Mar 8, 2018 · 2 comments

Comments

@alonstar
Copy link

alonstar commented Mar 8, 2018

Batch number is unique for daily.
If I need to generate two file, how do I add batch number ?

thanks.

@Cinchoo
Copy link
Owner

Cinchoo commented Mar 8, 2018

Exposed BatchNumber property via Configuration, to set the custom value.

config.BatchNumber = "123456789";

@alonstar
Copy link
Author

alonstar commented Mar 9, 2018

Thanks, the BatchNumberGenerator is great ! But I only want to set the "start" number.
how about this code?

_fileRunningStatObject.NewBatch();

uint batchNumber = _configuration.BatchNumber;

if (_configuration.BatchNumberGenerator != null){
	batchNumber = _configuration.BatchNumberGenerator();
}else if(batchNumber > _fileRunningStatObject.BatchCount){
	_fileRunningStatObject.BatchCount = batchNumber;
}

_NACHABatchHeaderRecord.BatchNumber = _fileRunningStatObject.BatchCount;

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

No branches or pull requests

2 participants