Cash Receipt Ingest (Auto Remittance Advice)
Automates importing customer remittance advice files into Epicor: reads spreadsheets, creates cash receipt groups/heads, allocates against invoices, optionally creates debit notes, and can post the group.
Function Libraries
Two Function Libraries have been created.
JpgalRemAdvIngest β The function library that is scheduled. Will handle reading the Excel files and calling the cash receipt processes. The CreateCashRecFromFiles function should be run.
JpgalCashReceipt β The function library to automate the Epicor Cash Receipt processes. Called by the JpgalRemAdvIngest library.
User Codes
Code Type ID: RemAdvCols
Code ID | Example | Meaning |
CurrCol | C | Spreadsheet column for Currency Code |
InvNumCol | A | Column containing Invoice Number or Legal Number (depends on UseLegalNo) |
PayAmtCol | B | Column for Payment Amount |
DebitNoCol | D | Column for Debit Note reference |
DNComments | E | Column for Debit Note comments |
ApplyDate | F | Column for Apply Date |
DiscDate | G | Column for Discount Date |
UseLegalNo | True | True β match by Legal Number; False β match by Invoice Number |
PostGroup | False | True β attempt to post when done (only if unapplied = 0) |
Note on Email recipients: While an EmailAlert user code exists, email recipients are currently controlled in code, not by user codes. Change recipients in the CreateCashRecFromFiles code.
File & Folder Structure
File drop location:
\\erp25app3\EpicorData\JPGAL\Import\RemAdv\{Company}
File name must equal the Customer ID. Example:
\\erp25app3\EpicorData\JPGAL\Import\RemAdv\FR\LER0001.xlsx
Logging
Log file location:
\\erp25app3\EpicorData\JPGAL\Logging\JpgalRemAdvIngest\CreateCashRecFromFiles
Spreadsheet Expectations
Required columns
Legal Number or Invoice Number (depending on UseLegalNo)
Customer Amount
Currency Code
Debit Note Number (only if you want to create debit notes)
Optional columns
Debit Note Comments
Transaction Apply Date
Discount Date
Example
Process Notes
The process will create a Posting Group from the first two letters of the Customer ID followed by the date. e.g. LE250613.
The process will create a Check Ref of βBank Stateβ followed by the date and time.
The process will match the provided references from the customer spreadsheet to the Epicor Legal Number or Invoice Number, according to the setting of the UseLegalNo user code. If a reference from the file cannot be matched, either a debit note will be created if the Debit Note Nbr column is populated, or the payment will remain unallocated.
Debit note comments will be added if the relevant field is populated in the spreadsheet. Likewise, the transaction apply date and/or discount date can be overridden.
Payment groups with unapplied cash will not be posted. Those with no unapplied cash will be posted if the User Code "PostGroup" is set to "True".
Example Flow
File LER0001.xlsx dropped into \\erp25app3\EpicorData\JPGAL\Import\RemAdv\FR
CreateCashRecFromFiles runs (scheduled)
Group created in Cash Receipts Entry
Spreadsheet rows processed
Group posted (If no unapplied cash and PostGroup=True in User Codes)
Logs written to \\erp25app3\EpicorData\JPGAL\Logging\JpgalRemAdvIngest\CreateCashRecFromFiles
Email sent
