[freeside-commits] freeside/FS/FS cust_main.pm, 1.271.2.41, 1.271.2.42
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Feb 13 15:45:44 PST 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv14334/FS/FS
Modified Files:
Tag: FREESIDE_1_7_BRANCH
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.271.2.41
retrieving revision 1.271.2.42
diff -u -d -r1.271.2.41 -r1.271.2.42
--- cust_main.pm 3 Feb 2008 02:24:12 -0000 1.271.2.41
+++ cust_main.pm 13 Feb 2008 23:45:42 -0000 1.271.2.42
@@ -4131,13 +4131,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;
@@ -4164,6 +4165,7 @@
'plan' => 'flat',
'freq' => 0,
'disabled' => 'Y',
+ 'classnum' => $classnum ? $classnum : '',
'taxclass' => $taxclass,
} );
More information about the freeside-commits
mailing list