[freeside-commits] freeside/FS/FS cust_main.pm,1.333,1.334
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Feb 13 15:46:53 PST 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv14416/FS/FS
Modified Files:
cust_main.pm
Log Message:
package class selection for one-time charges RT#1322
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.333
retrieving revision 1.334
diff -u -d -r1.333 -r1.334
--- cust_main.pm 3 Feb 2008 02:24:03 -0000 1.333
+++ cust_main.pm 13 Feb 2008 23:46:51 -0000 1.334
@@ -4632,13 +4632,14 @@
sub charge {
my $self = shift;
- my ( $amount, $pkg, $comment, $taxclass, $additional );
+ my ( $amount, $pkg, $comment, $taxclass, $additional, $classnum );
if ( ref( $_[0] ) ) {
$amount = $_[0]->{amount};
$pkg = exists($_[0]->{pkg}) ? $_[0]->{pkg} : 'One-time charge';
$comment = exists($_[0]->{comment}) ? $_[0]->{comment}
: '$'. sprintf("%.2f",$amount);
$taxclass = exists($_[0]->{taxclass}) ? $_[0]->{taxclass} : '';
+ $classnum = exists($_[0]->{classnum}) ? $_[0]->{classnum} : '';
$additional = $_[0]->{additional};
}else{
$amount = shift;
@@ -4665,6 +4666,7 @@
'plan' => 'flat',
'freq' => 0,
'disabled' => 'Y',
+ 'classnum' => $classnum ? $classnum : '',
'taxclass' => $taxclass,
} );
More information about the freeside-commits
mailing list