projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wording
[freeside.git]
/
httemplate
/
edit
/
svc_dsl.cgi
diff --git
a/httemplate/edit/svc_dsl.cgi
b/httemplate/edit/svc_dsl.cgi
index
7493d98
..
9b4d1c7
100644
(file)
--- a/
httemplate/edit/svc_dsl.cgi
+++ b/
httemplate/edit/svc_dsl.cgi
@@
-55,7
+55,7
@@
my $edit_cb = sub {
# else add any other export-specific stuff here
}
else {
# 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 );
}
};
}
};
@@
-65,7
+65,6
@@
my $new_cb = sub {
die "more than one DSL-pulling export attached to svcpart ".$part_svc->svcpart
if ( scalar(@exports) > 1 );
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;
my $cust_main = $cust_pkg->cust_main;
my $defsvctn = $cust_main->ship_daytime ? $cust_main->ship_daytime
: $cust_main->daytime;
@@
-90,6
+89,7
@@
my $new_cb = sub {
},
);
},
);
+ if ( scalar(@exports) == 1 ) {
my $export = @exports[0];
if($export->exporttype eq 'ikano') {
my $ddd = $cust_pkg->start_date;
my $export = @exports[0];
if($export->exporttype eq 'ikano') {
my $ddd = $cust_pkg->start_date;
@@
-120,8
+120,8
@@
my $new_cb = sub {
}
# else add any other export-specific stuff here
}
}
# 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>
}
};
</%init>