1 package FS::part_export::broadband_sql;
2 use base qw( FS::part_export::sql_Common );
8 tie my %options, 'Tie::IxHash',
9 %{__PACKAGE__->sql_options},
10 # likely to be necessary
12 label => 'Export MAC address as',
14 options => [ qw(uppercase lowercase) ],
17 label => 'Separate MAC address octets with',
23 'svc' => 'svc_broadband',
24 'desc' => 'Real-time export of broadband services to SQL databases ',
25 'options' => \%options,
32 # to avoid confusion, let the user just enter "mac_addr" as the column name
34 my %map = shift->_map('schema');
36 s/^mac_addr$/mac_addr_formatted/;
41 sub _map_arg_callback {
42 my($self, $field) = @_;
43 if ( $field eq 'mac_addr_formatted' ) {
44 return ($self->option('mac_case'), $self->option('mac_delimiter'));