projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0788d4b
)
limit length of customer name in RBC batch format; patch from Peter Loeppky, #35102
author
Mark Wells
<mark@freeside.biz>
Fri, 29 May 2015 06:06:10 +0000
(23:06 -0700)
committer
Mark Wells
<mark@freeside.biz>
Fri, 29 May 2015 06:06:10 +0000
(23:06 -0700)
FS/FS/pay_batch/RBC.pm
patch
|
blob
|
history
diff --git
a/FS/FS/pay_batch/RBC.pm
b/FS/FS/pay_batch/RBC.pm
index
45e888d
..
1310640
100644
(file)
--- a/
FS/FS/pay_batch/RBC.pm
+++ b/
FS/FS/pay_batch/RBC.pm
@@
-4,6
+4,7
@@
use strict;
use vars qw(@ISA %import_info %export_info $name);
use Date::Format 'time2str';
use FS::Conf;
use vars qw(@ISA %import_info %export_info $name);
use Date::Format 'time2str';
use FS::Conf;
+use Encode 'encode';
my $conf;
my ($client_num, $shortname, $longname, $trans_code, $testmode, $i, $declined, $totaloffset);
my $conf;
my ($client_num, $shortname, $longname, $trans_code, $testmode, $i, $declined, $totaloffset);
@@
-174,8
+175,8
@@
$name = 'RBC';
sprintf("%010.0f",$cust_pay_batch->amount*100).
' '.
time2str("%Y%j", $pay_batch->download).
sprintf("%010.0f",$cust_pay_batch->amount*100).
' '.
time2str("%Y%j", $pay_batch->download).
- sprintf("%-30
s"
, $cust_pay_batch->cust_main->first . ' ' .
- $cust_pay_batch->cust_main->last).
+ sprintf("%-30
.30s", encode('utf8'
, $cust_pay_batch->cust_main->first . ' ' .
+ $cust_pay_batch->cust_main->last)
)
.
'E'. # English
' '.
sprintf("%-15s", $shortname).
'E'. # English
' '.
sprintf("%-15s", $shortname).