From: ivan Date: Thu, 5 Jun 2008 19:25:33 +0000 (+0000) Subject: implement quantity charging for setup fees X-Git-Tag: freeside_1_7_4rc1~306 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=d003283a317aa6a7981208f47706bf3a610ecc81;p=freeside.git implement quantity charging for setup fees --- 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 {