[freeside-commits] branch master updated. 76c0399b07a8bc7d5642eeafa75b4862033bd7b5

Jonathan Prykop jonathan at 420.am
Fri Feb 27 22:45:26 PST 2015


The branch, master has been updated
       via  76c0399b07a8bc7d5642eeafa75b4862033bd7b5 (commit)
      from  1ac4a177bd93ad7a97a45aacb66aa0bc9c23726b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 76c0399b07a8bc7d5642eeafa75b4862033bd7b5
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Sat Feb 28 00:44:37 2015 -0600

    RT#33582: RBC return batch processing failure [added comments]

diff --git a/FS/FS/pay_batch/RBC.pm b/FS/FS/pay_batch/RBC.pm
index a9b670d..f86eb37 100644
--- a/FS/FS/pay_batch/RBC.pm
+++ b/FS/FS/pay_batch/RBC.pm
@@ -11,6 +11,20 @@ my ($client_num, $shortname, $longname, $trans_code, $i);
 $name = 'RBC';
 # Royal Bank of Canada ACH Direct Payments Service
 
+# Meaning of initial characters in records:
+# 0 - header row, skipped by begin_condition
+# 1 - Debit Detail Record (only when subtype is 0)
+# 2 - Credit Detail Record, we die with a parse error (shouldn't appear in freeside-generated batches)
+# 3 - Account Trailer Record (appears after Returned items, we skip)
+# 4 - Client Trailer Record, indicates end of batch in end_condition
+#
+# Subtypes (27th char) indicate different kinds of Debit/Credit records
+# 0 - Credit/Debit Detail Record
+# 3 - Error Message Record
+# 4 - Foreign Currency Information Records
+# We skip all subtypes except 0
+#
+# additional information available at https://www.rbcroyalbank.com/ach/file-451806.pdf
 %import_info = (
   'filetype'    => 'fixed',
   'formatre'    => 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/pay_batch/RBC.pm |   14 ++++++++++++++
 1 file changed, 14 insertions(+)




More information about the freeside-commits mailing list