From: ivan Date: Thu, 5 Jun 2008 19:25:32 +0000 (+0000) Subject: implement quantity charging for setup fees X-Git-Tag: root_of_webpay_support~584 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=92a2ad38a8415ba22cb18969b77819aa3d2980b4 implement quantity charging for setup fees --- diff --git a/FS/FS/part_pkg/flat.pm b/FS/FS/part_pkg/flat.pm index 8cb25a623..1d93e55cd 100644 --- 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 {