[freeside-commits] freeside/httemplate/misc phone_avail-import.html, 1.2.8.5, 1.2.8.6

Erik Levinson levinse at wavetail.420.am
Fri Apr 22 16:17:42 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv5939/httemplate/misc

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	phone_avail-import.html 
Log Message:
bulk DID orders/inventory improvements, RT11291

Index: phone_avail-import.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/phone_avail-import.html,v
retrieving revision 1.2.8.5
retrieving revision 1.2.8.6
diff -u -w -d -r1.2.8.5 -r1.2.8.6
--- phone_avail-import.html	11 Apr 2011 23:31:58 -0000	1.2.8.5
+++ phone_avail-import.html	22 Apr 2011 23:17:40 -0000	1.2.8.6
@@ -45,6 +45,16 @@
     <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',
@@ -55,6 +65,7 @@
                 #'label_callback' => 
             )
   %>
+% }
 
   <TR>
     <TH ALIGN="right">Country code</TH>
@@ -146,4 +157,6 @@
 my $availbatch =
   time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
 
+my @exports = qsearch('part_export', { 'exporttype' => 'internal_diddb', });
+
 </%init>



More information about the freeside-commits mailing list