summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorjeff <jeff>2008-02-13 23:46:52 +0000
committerjeff <jeff>2008-02-13 23:46:52 +0000
commitba5deb42e573673383c8e9dac0dfe3e4296c4b6d (patch)
tree675988f0a7acb0daf3cdfa7464811c9389ab2e62 /FS
parent117b59b69ddc3dab173ec531762686d8c49ad08f (diff)
package class selection for one-time charges RT#1322
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_main.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 398ff0487..73bdc1462 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -4632,13 +4632,14 @@ the error, otherwise returns false.
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 @@ sub charge {
'plan' => 'flat',
'freq' => 0,
'disabled' => 'Y',
+ 'classnum' => $classnum ? $classnum : '',
'taxclass' => $taxclass,
} );