X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export.pm;h=9a479b7c841b38b19cc47c6442a6d743ad771733;hp=890c522f66646fd902ac44dd567a177b461d62de;hb=d93123f3620fe0f1e48c453e292e335050532043;hpb=e5e3f6ec09be93b0d00d1f84e4c7cade6e18a802 diff --git a/FS/FS/part_export.pm b/FS/FS/part_export.pm index 890c522f6..9a479b7c8 100644 --- a/FS/FS/part_export.pm +++ b/FS/FS/part_export.pm @@ -401,6 +401,18 @@ or hidden by default). =cut +=item weight + +Returns the 'weight' element from the export's %info hash, or 0 if there is +no weight defined. + +=cut + +sub weight { + my $self = shift; + export_info()->{$self->exporttype}->{'weight'} || 0; +} + =back =head1 SUBROUTINES