fixed format option for TD EFT, RT#10545
authormark <mark>
Mon, 31 Jan 2011 20:28:39 +0000 (20:28 +0000)
committermark <mark>
Mon, 31 Jan 2011 20:28:39 +0000 (20:28 +0000)
FS/FS/Conf.pm
httemplate/search/cust_pay_batch.cgi

index 9919065..c13915b 100644 (file)
@@ -2974,7 +2974,7 @@ and customer address. Include units.',
     'description' => 'Fixed (unchangeable) format for electronic check batches.',
     'type'        => 'select',
     'select_enum' => [ 'csv-td_canada_trust-merchant_pc_batch', 'BoM', 'PAP',
-                       'paymentech', 'ach-spiritone', 'RBC'
+                       'paymentech', 'ach-spiritone', 'RBC', 'td_eft1464'
                      ]
   },
 
index cb101d4..6d628d3 100755 (executable)
@@ -179,7 +179,15 @@ if ( $pay_batch ) {
                          ).
                   '<BR></TR>'
                   ;
-    if ( $fixed ) {
+    if ( $fixed and $fixed eq 'td_eft1464' ) {
+      # special case, this one has two upload formats
+      $html_init .= qq!<TR>Format !.
+                    qq!<SELECT NAME="format">!.
+                    qq!<OPTION VALUE="td_eftack264">TD EFT Acknowledgement</OPTION>!.
+                    qq!<OPTION VALUE="td_eftret80">TD EFT Returned Items</OPTION>!.
+                    qq!</SELECT><BR></TR>!;
+    }
+    elsif ( $fixed ) {
       $html_init .= qq!<INPUT TYPE="hidden" NAME="format" VALUE="$fixed">!;
     } else {
       # should pull this from %import_info