X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_pkg.pm;h=ed059d16ade28bc07fc9272c8c177b9b74b94f1f;hp=9e188afe876567b9cfeefb3ff1522af601f65de5;hb=e71a8fbc7e88c05b22584040e4aab1f24655b921;hpb=1724266692e1e3ebe8d71a540077ddee92118bb2 diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 9e188afe8..ed059d16a 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -2645,7 +2645,7 @@ sub statuscolor { =item pkg_label Returns a label for this package. (Currently "pkgnum: pkg - comment" or -"pkg-comment" depending on user preference). +"pkg - comment" depending on user preference). =cut @@ -2672,6 +2672,17 @@ sub pkg_label_long { $label; } +=item pkg_locale + +Returns a customer-localized label for this package. + +=cut + +sub pkg_locale { + my $self = shift; + $self->part_pkg->pkg_locale( $self->cust_main->locale ); +} + =item primary_cust_svc Returns a primary service (as FS::cust_svc object) if one can be identified.