$self->SUPER::check;
}
+=item label
+
+Returns a label for this export, "exportname||exportype (machine)".
+
+=cut
+
+sub label {
+ my $self = shift;
+ ($self->exportname || $self->exporttype ). ' ('. $self->machine. ')';
+}
+
#=item part_svc
#
#Returns the service definition (see L<FS::part_svc>) for this export.
<% include( '/elements/tr-select-table.html',
'table' => 'part_export',
- 'name_col' => 'machine',
+ 'name_col' => 'label',
+ 'order_by' => 'ORDER BY exportname, machine',
'label' => 'Export',
'empty_label' => 'Select export',
'hashref' => { 'exporttype' => 'internal_diddb', },