projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bulk DID orders/inventory improvements, RT11291
[freeside.git]
/
httemplate
/
misc
/
phone_avail-import.html
diff --git
a/httemplate/misc/phone_avail-import.html
b/httemplate/misc/phone_avail-import.html
index
635b8f6
..
b6fea7e
100644
(file)
--- a/
httemplate/misc/phone_avail-import.html
+++ b/
httemplate/misc/phone_avail-import.html
@@
-45,6
+45,16
@@
Import a file containing phone numbers (DIDs).
<TD><% $format %><INPUT TYPE="hidden" NAME="format" VALUE="<% $format %>"></TD>
</TR>
<TD><% $format %><INPUT TYPE="hidden" NAME="format" VALUE="<% $format %>"></TD>
</TR>
+% if ( scalar(@exports) == 1 ) {
+% my $export = $exports[0];
+ <TR>
+ <TD>Export</TD>
+ <TD>
+ <INPUT TYPE="hidden" name="exportnum" value="<%$export->exportnum%>">
+ <% $export->exportname %>
+ </TD>
+ </TR>
+% } else {
<% include( '/elements/tr-select-table.html',
'table' => 'part_export',
'name_col' => 'label',
<% include( '/elements/tr-select-table.html',
'table' => 'part_export',
'name_col' => 'label',
@@
-55,6
+65,7
@@
Import a file containing phone numbers (DIDs).
#'label_callback' =>
)
%>
#'label_callback' =>
)
%>
+% }
<TR>
<TH ALIGN="right">Country code</TH>
<TR>
<TH ALIGN="right">Country code</TH>
@@
-145,5
+156,7
@@
if ( $order ) {
my $availbatch =
time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
my $availbatch =
time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
+
+my @exports = qsearch('part_export', { 'exporttype' => 'internal_diddb', });
</%init>
</%init>