# else add any other export-specific stuff here
}
else {
- # XXX allow editing everything
+ push @fields, qw( first last company phonenum circuitnum rate_band vpi vci );
}
};
die "more than one DSL-pulling export attached to svcpart ".$part_svc->svcpart
if ( scalar(@exports) > 1 );
- if ( scalar(@exports) == 1 ) {
my $cust_main = $cust_pkg->cust_main;
my $defsvctn = $cust_main->ship_daytime ? $cust_main->ship_daytime
: $cust_main->daytime;
},
);
+ if ( scalar(@exports) == 1 ) {
my $export = @exports[0];
if($export->exporttype eq 'ikano') {
- $cgi->param('vendor_qual_id') =~ /^(\d+)$/
- or die 'unparsable vendor_qual_id';
- my $vendor_qual_id = $1;
-
- die "no start date set on customer package" if !$cust_pkg->start_date;
+ my $ddd = $cust_pkg->start_date;
+ $ddd = time unless $ddd;
my @addl_fields = (
{ field => 'loop_type',
'password',
{ field => 'isp_chg', type => 'checkbox', },
'isp_prev',
- { field => 'vendor_qual_id',
- type => 'fixed',
- value => $vendor_qual_id, },
+ 'vendor_qual_id',
{ field => 'vendor_order_type',
type => 'hidden',
- value => 'N' },
+ value => 'NEW' },
{ field => 'desired_due_date',
type => 'fixed',
formatted_value =>
- time2str($date_format,$cust_pkg->start_date),
- value => $cust_pkg->start_date,
+ time2str($date_format,$ddd),
+ value => $ddd,
},
);
push @fields, @addl_fields;
}
# else add any other export-specific stuff here
}
- else {
- # XXX display everything when no exports attached
+ else { # display non-export and non-Ikano fields
+ push @fields, qw( rate_band circuitnum vpi vci );
}
};
</%init>