1 package FS::pay_batch::td_eftret80;
4 use vars qw(@ISA %import_info %export_info $name);
8 td_eftret80 - TD Commercial Banking EFT 80 byte returned item file
12 $name = 'td_eftret80';
15 'filetype' => 'fixed',
16 'formatre' => '^(.)(.{20})(..)(.)(.{6})(.{19})(.{9})(.{12})(.{10})$',
30 $hash->{'_date'} = time;
31 $hash->{'paid'} = sprintf('%.2f', $hash->{'paid'} / 100);
32 $hash->{'payinfo'} =~ s/^(\S+).*/$1/; # these often have trailing spaces
33 $hash->{'payinfo'} = $hash->{'payinfo'} . '@' . $hash->{'bank'};
35 'approved' => sub { 0 },
36 'declined' => sub { 1 },
37 'skip_condition' => sub {
39 $hash->{'recordtype'} ne 'D'; #Detail record
41 'close_condition' => sub { 0 }, # never close just from this
44 %export_info = ( filetype => 'NONE' );