X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_pkg.pm;h=3d24ea5b2fb77967f5f251e87847a134cabb722b;hp=8357386046c9d41803edd9c063f164a491ad6f7e;hb=b7a2175dd9b386441f4ab66869d73083e5e8beb1;hpb=e497261817ee2cf3acb5ee3dda3c5906f1c13a4f diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 835738604..3d24ea5b2 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -2191,6 +2191,18 @@ sub calc_recur { $self->part_pkg->calc_recur($self, @_); } +=item base_setup + +Calls the I of the FS::part_pkg object associated with this billing +item. + +=cut + +sub base_setup { + my $self = shift; + $self->part_pkg->base_setup($self, @_); +} + =item base_recur Calls the I of the FS::part_pkg object associated with this billing @@ -2345,9 +2357,11 @@ sub num_cust_event { =item part_pkg_currency_option OPTIONNAME -Returns the option value for the given name and the currency of this customer -(see L). If this customer has no currency, returns -the regular option value for the given name (see L). +Returns a two item list consisting of the currency of this customer, if any, +and a value for the provided option. If the customer has a currency, the value +is the option value the given name and the currency (see +L). Otherwise, if the customer has no currency, is the +regular option value for the given name (see L). =cut @@ -2355,9 +2369,9 @@ sub part_pkg_currency_option { my( $self, $optionname ) = @_; my $part_pkg = $self->part_pkg; if ( my $currency = $self->cust_main->currency ) { - $part_pkg->part_pkg_currency_option($currency, $optionname); + ($currency, $part_pkg->part_pkg_currency_option($currency, $optionname) ); } else { - $part_pkg->option($optionname); + ('', $part_pkg->option($optionname) ); } }