projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1203e27
)
implement quantity charging for setup fees
author
ivan
<ivan>
Thu, 5 Jun 2008 19:25:32 +0000
(19:25 +0000)
committer
ivan
<ivan>
Thu, 5 Jun 2008 19:25:32 +0000
(19:25 +0000)
FS/FS/part_pkg/flat.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/flat.pm
b/FS/FS/part_pkg/flat.pm
index
8cb25a6
..
1d93e55
100644
(file)
--- a/
FS/FS/part_pkg/flat.pm
+++ b/
FS/FS/part_pkg/flat.pm
@@
-99,7
+99,9
@@
sub calc_setup {
push @$details, $self->option( 'additional_info' . $i++ );
}
- $self->option('setup_fee');
+ my $quantity = $cust_pkg->quantity || 1;
+
+ sprintf("%.2f", $quantity * $self->option('setup_fee') );
}
sub calc_recur {