[freeside-commits] freeside/FS/FS cust_pay.pm,1.70,1.71
Ivan,,,
ivan at wavetail.420.am
Mon Jun 22 16:42:21 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv12008/FS/FS
Modified Files:
cust_pay.pm
Log Message:
fix using encryption produces non-decrypted data in payment receipts, RT#5536
Index: cust_pay.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pay.pm,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- cust_pay.pm 5 May 2009 17:58:50 -0000 1.70
+++ cust_pay.pm 22 Jun 2009 23:42:19 -0000 1.71
@@ -216,11 +216,15 @@
my $payby = $self->payby;
my $payinfo = $self->payinfo;
$payby =~ s/^BILL$/Check/ if $payinfo;
- $payinfo = $self->paymask if $payby eq 'CARD' || $payby eq 'CHEK';
+ if ( $payby eq 'CARD' || $payby eq 'CHEK' ) {
+ $payinfo = $self->paymask
+ } else {
+ $payinfo = $self->decrypt($payinfo);
+ }
$payby =~ s/^CHEK$/Electronic check/;
$error = send_email(
- 'from' => $conf->config('invoice_from', $self->cust_main->agentnum),
+ 'from' => $conf->config('invoice_from', $cust_main->agentnum),
#invoice_from??? well as good as any
'to' => \@invoicing_list,
'subject' => 'Payment receipt',
More information about the freeside-commits
mailing list