X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export.pm;h=15ce9c05936f04a756b7e996c1986cd349fd107f;hb=b70a4b7f41c84aefd7f273974db59e5c37fc368b;hp=b0f708a66ce1157cda896f228c2c17cf8c8061da;hpb=6868dfdef35b338f5f4f6c0bc9cae535dc344ab9;p=freeside.git diff --git a/FS/FS/part_export.pm b/FS/FS/part_export.pm index b0f708a66..15ce9c059 100644 --- a/FS/FS/part_export.pm +++ b/FS/FS/part_export.pm @@ -601,6 +601,17 @@ DEFAULTSREF is a hashref with the same keys where true values indicate the setting is a default (and thus can be displayed in the UI with less emphasis, or hidden by default). +=item actions + +Adds one or more "action" links to the export's display in +browse/part_export.cgi. Should return pairs of values. The first is +the link label; the second is the Mason path to a document to load. +The document will show in a popup. + +=cut + +sub actions { } + =cut =item weight @@ -615,6 +626,27 @@ sub weight { export_info()->{$self->exporttype}->{'weight'} || 0; } +=item info + +Returns a reference to (a copy of) the export's %info hash. + +=cut + +sub info { + my $self = shift; + $self->{_info} ||= { + %{ export_info()->{$self->exporttype} } + }; +} + +#default fallbacks... FS::part_export::DID_Common ? +sub get_dids_can_tollfree { 0; } +sub get_dids_can_manual { 0; } +sub get_dids_can_edit { 0; } #don't use without can_manual, otherwise the + # DID selector provisions a new number from + # inventory each edit +sub get_dids_npa_select { 1; } + =back =head1 SUBROUTINES