1 <% include('elements/svc_Common.html',
5 'svc_callback' => $svc_cb,
6 'html_foot' => $html_foot,
13 my $fields = FS::svc_dsl->table_info->{'fields'};
14 my %labels = map { $_ => ( ref($fields->{$_})
15 ? $fields->{$_}{'label'}
19 my @fields = keys %$fields;
28 my( $cgi,$svc_dsl, $part_svc,$cust_pkg, $fields1,$opt) = @_;
30 my @exports = $part_svc->part_export_dsl_pull;
31 die "more than one DSL-pulling export attached to svcpart ".$part_svc->svcpart
32 if ( scalar(@exports) > 1 );
34 # if no DSL-pulling exports, then just display everything, which is the
35 # default behaviour implemented above
36 return if ( scalar(@exports) == 0 );
38 my $export = @exports[0];
40 @fields = ( 'phonenum',
41 { field => 'loop_type',
42 value => 'FS::part_export::'.$export->exporttype.'::loop_type_long'
44 { field => 'desired_due_date', type => 'date', },
45 { field => 'due_date', type => 'date', },
46 { field => 'pushed', type => 'datetime', },
47 { field => 'monitored', type => 'checkbox', },
48 { field => 'last_pull', type => 'datetime', },
54 if($export->exporttype eq 'ikano') {
55 push @fields, qw ( username password isp_chg isp_prev staticips );
56 $status = "Ikano " . $svc_dsl->vendor_order_type . " order #"
57 . $svc_dsl->vendor_order_id . " Status: "
58 . $svc_dsl->vendor_order_status;
60 # else add any other export-specific stuff here
62 $footer = "<B>$status</B>";
64 my @notes = $svc_dsl->notes;
67 my $conf = new FS::Conf;
68 my $date_format = $conf->config('date_format') || '%m/%d/%Y';
71 "<BR><BR>Order Notes<BR>". ntable('#cccccc', 2). #id="dsl_notes"
72 '<TR><TH>Date</TH><TH>By</TH><TH>Priority</TH><TH>Note</TH></TR>';
74 foreach my $note ( @notes ) {
76 <TD>".time2str("$date_format %H:%M",$note->date)."</TD>
77 <TD>".$note->by."</TD>
78 <TD>". ($note->priority eq 'N' ? 'Normal' : 'High') ."</TD>
79 <TD>".$note->note."</TD></TR>";
82 $footer .= '</TABLE>';