Skip to content

Commit

Permalink
fix: field name and type issues when creating NACHA file
Browse files Browse the repository at this point in the history
  • Loading branch information
HKuz authored and agritheory committed Aug 23, 2022
1 parent 26c560d commit 7ded221
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions check_run/check_run/doctype/check_run/check_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def build_nacha_file(self, settings=None):
payment_entries = [frappe.get_doc('Payment Entry', pe) for pe in ach_payment_entries]
nacha_file = build_nacha_file_from_payment_entries(self, payment_entries, settings)
ach_file = StringIO(nacha_file())
print(ach_file)
ach_file.seek(0)
return ach_file

Expand Down Expand Up @@ -489,8 +490,8 @@ def build_nacha_file_from_payment_entries(doc, payment_entries, settings):
company_name=doc.get('company'),
company_discretionary_data='',
company_id=company_ach_id,
standard_class_code=settings.standard_class_code,
company_entry_description=settings.ach_description,
standard_class_code=settings.ach_standard_class_code,
company_entry_description=settings.ach_description or "",
company_descriptive_date=None,
effective_entry_date=getdate(),
settlement_date=None,
Expand Down

0 comments on commit 7ded221

Please sign in to comment.