travishathaway / python-ach

ACH file generator module for python
MIT License
49 stars 50 forks source link

debit_amount calculation in FileControl #9

Closed utsengar closed 10 years ago

utsengar commented 10 years ago

Looks like there is a bug here: https://github.com/travishathaway/python-ach/blob/master/ach/data_types.py#L206 Not sure why we are multiplying debit amount with 100. It its 1.00, it will become 100.

travishathaway commented 10 years ago

It might look a little off, but decimals are not allowed in NACHA files. The last two digits always represent cents on the dollar. So this is not an error. This site provides a great reference for the file formats, http://www.achrulesonline.org/