[freeside-commits] freeside/httemplate/misc/process recharge_svc.html, 1.2.2.3, 1.2.2.4
Jeff Finucane,420,,
jeff at wavetail.420.am
Sun Dec 23 13:59:50 PST 2007
- Previous message: [freeside-commits] freeside/FS/FS/part_pkg flat.pm, 1.13.2.6, 1.13.2.7 prorate.pm, 1.10.2.4, 1.10.2.5 subscription.pm, 1.9.2.3, 1.9.2.4
- Next message: [freeside-commits] freeside/FS/FS/part_pkg flat.pm, 1.20, 1.21 prorate.pm, 1.15, 1.16 subscription.pm, 1.13, 1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/misc/process
In directory wavetail:/tmp/cvs-serv31733/httemplate/misc/process
Modified Files:
Tag: FREESIDE_1_7_BRANCH
recharge_svc.html
Log Message:
add a reset feature to manual recharges (#1858)
Index: recharge_svc.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/process/recharge_svc.html,v
retrieving revision 1.2.2.3
retrieving revision 1.2.2.4
diff -u -d -r1.2.2.3 -r1.2.2.4
--- recharge_svc.html 13 Jul 2007 23:52:32 -0000 1.2.2.3
+++ recharge_svc.html 23 Dec 2007 21:59:47 -0000 1.2.2.4
@@ -40,7 +40,8 @@
% } elsif ( $payby =~ /^(CARD|DCRD|CHEK|DCHK|LECB|BILL|COMP)$/ ) {
% my $part_pkg = $svc_acct->cust_svc->cust_pkg->part_pkg;
% $amount = $part_pkg->option('recharge_amount', 1);
-% my %rhash = map { $_ =~ /^recharge_(.*)$/; $1, $part_pkg->option($_, 1) }
+% my %rhash = map { $_ =~ /^recharge_(.*)$/; $1, $part_pkg->option($_) }
+% grep { $part_pkg->option($_, 1) }
% qw ( recharge_seconds recharge_upbytes recharge_downbytes
% recharge_totalbytes );
%
@@ -53,7 +54,11 @@
% $error = $cust_main->charge($amount, "Recharge " . $svc_acct->label,
% $description, $part_pkg->taxclass);
%
-% $error ||= $svc_acct->recharge(\%rhash);
+% if ($part_pkg->option('recharge_reset', 1)) {
+% $error ||= $svc_acct->set_usage(\%rhash);
+% }else{
+% $error ||= $svc_acct->recharge(\%rhash);
+% }
%
% my $old_balance = $cust_main->balance;
% $error ||= $cust_main->bill;
- Previous message: [freeside-commits] freeside/FS/FS/part_pkg flat.pm, 1.13.2.6, 1.13.2.7 prorate.pm, 1.10.2.4, 1.10.2.5 subscription.pm, 1.9.2.3, 1.9.2.4
- Next message: [freeside-commits] freeside/FS/FS/part_pkg flat.pm, 1.20, 1.21 prorate.pm, 1.15, 1.16 subscription.pm, 1.13, 1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list