diff options
| author | ivan <ivan> | 2008-06-05 19:25:33 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2008-06-05 19:25:33 +0000 | 
| commit | d003283a317aa6a7981208f47706bf3a610ecc81 (patch) | |
| tree | 49ea423a05af68f486444a4e2cb02709e833a459 | |
| parent | 7a3347315a12b7afb394a855eccf996faf0c6589 (diff) | |
implement quantity charging for setup fees
| -rw-r--r-- | FS/FS/part_pkg/flat.pm | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/FS/FS/part_pkg/flat.pm b/FS/FS/part_pkg/flat.pm index 92e72cf8a..96357c723 100644 --- a/FS/FS/part_pkg/flat.pm +++ b/FS/FS/part_pkg/flat.pm @@ -98,7 +98,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 { | 
