[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.53.2.20, 1.53.2.21
Ivan,,,
ivan at wavetail.420.am
Tue Mar 17 14:38:46 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv28756/FS/FS/ClientAPI
Modified Files:
Tag: FREESIDE_1_7_BRANCH
MyAccount.pm
Log Message:
add payment_info_renew_info method to ClientAPI/MyAccount and SG-equivalent previous_payment_info_renew_info to ClientAPI/SGNG
Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.53.2.20
retrieving revision 1.53.2.21
diff -u -d -r1.53.2.20 -r1.53.2.21
--- MyAccount.pm 15 Mar 2009 23:12:24 -0000 1.53.2.20
+++ MyAccount.pm 17 Mar 2009 21:38:44 -0000 1.53.2.21
@@ -1036,11 +1036,14 @@
$total += $_->part_pkg->base_recur;
my $renew_date = $_->part_pkg->add_freq($_->bill);
{
- 'bill_date' => $_->bill,
- 'bill_date_pretty' => time2str('%x', $_->bill),
- 'renew_date' => $renew_date,
- 'renew_date_pretty' => time2str('%x', $renew_date),
- 'amount' => sprintf('%.2f', $total),
+ 'pkgnum' => $_->pkgnum,
+ 'amount' => sprintf('%.2f', $total),
+ 'bill_date' => $_->bill,
+ 'bill_date_pretty' => time2str('%x', $_->bill),
+ 'renew_date' => $renew_date,
+ 'renew_date_pretty' => time2str('%x', $renew_date),
+ 'expire_date' => $_->expire,
+ 'expire_date_pretty' => time2str('%x', $_->expire),
};
}
@cust_pkg;
@@ -1049,6 +1052,15 @@
}
+sub payment_info_renew_info {
+ my $p = shift;
+ my $renew_info = renew_info($p);
+ my $payment_info = payment_info($p);
+ return { %$renew_info,
+ %$payment_info,
+ };
+}
+
sub order_renew {
my $p = shift;
More information about the freeside-commits
mailing list