X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpay_batch%2FRBC.pm;h=f3f81707a55c0442849a922ec4e08939ee6ecf7c;hb=fe708edd0ced9686d96b3ceb3de1300f5984a92e;hp=a9b670dccaf66a5f3886eddc565f8f79c355f7ee;hpb=7e8446b68291dcc4ae2b305f048d1966aa27f1fc;p=freeside.git diff --git a/FS/FS/pay_batch/RBC.pm b/FS/FS/pay_batch/RBC.pm index a9b670dcc..f3f81707a 100644 --- a/FS/FS/pay_batch/RBC.pm +++ b/FS/FS/pay_batch/RBC.pm @@ -11,6 +11,18 @@ 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 %import_info = ( 'filetype' => 'fixed', 'formatre' =>