[freeside-commits] branch master updated. b726a30ae6b7c13224495c493d8918214270cf5c

Jonathan Prykop jonathan at 420.am
Fri Apr 3 17:36:33 PDT 2015


The branch, master has been updated
       via  b726a30ae6b7c13224495c493d8918214270cf5c (commit)
      from  506bee9c2fefa9a3cd4415a069b1fb16d9f4e3ab (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b726a30ae6b7c13224495c493d8918214270cf5c
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Fri Apr 3 19:36:13 2015 -0500

    RT#34201: Payment import option

diff --git a/FS/FS/payby.pm b/FS/FS/payby.pm
index 5b4559d..a3c9807 100644
--- a/FS/FS/payby.pm
+++ b/FS/FS/payby.pm
@@ -246,6 +246,17 @@ sub payment_payby2longname {
   map { $_ => $hash{$_}->{longname} } $self->payment_payby;
 }
 
+=item payment_payby2payname
+
+Returns hash, keys are L</payment_payby> types, values are payby payname.
+
+=cut
+
+sub payment_payby2payname {
+  my $self = shift;
+  map { $_ => $self->payname($_) } $self->payment_payby;
+}
+
 =back
 
 =head1 BUGS
diff --git a/httemplate/misc/cust_pay-import.cgi b/httemplate/misc/cust_pay-import.cgi
index bc4ac83..897de99 100644
--- a/httemplate/misc/cust_pay-import.cgi
+++ b/httemplate/misc/cust_pay-import.cgi
@@ -87,5 +87,5 @@ Field information:
 <%init>
 my $paybatch = time2str('webbatch-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
 my %paybys;
-tie %paybys, 'Tie::IxHash', FS::payby->payment_payby2longname();
+tie %paybys, 'Tie::IxHash', FS::payby->payment_payby2payname();
 </%init>

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/payby.pm                      |   11 +++++++++++
 httemplate/misc/cust_pay-import.cgi |    2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list