summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorjeff <jeff>2008-02-13 23:45:42 +0000
committerjeff <jeff>2008-02-13 23:45:42 +0000
commit72fc66f5f5882d670ccce2dfe17d03bb7faad390 (patch)
tree086ba3d2926b206bc5b9a6ca866890d0dc59b8af /FS
parentfc6c22c40f3b5362f46eb3ad4739580351bb4076 (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 d3f9b877a..3d7011d10 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -4131,13 +4131,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;
@@ -4164,6 +4165,7 @@ sub charge {
'plan' => 'flat',
'freq' => 0,
'disabled' => 'Y',
+ 'classnum' => $classnum ? $classnum : '',
'taxclass' => $taxclass,
} );