quick list of area codes and a kludge to print DA numbers for all of them
[freeside.git] / httemplate / misc / order_pkg.html
index 852b51c..2c83351 100644 (file)
@@ -1,13 +1,15 @@
 <% include('/elements/header-popup.html', 'Order new package' ) %>
 
 <SCRIPT TYPE="text/javascript">
-function enable_order_pkg () {
-  if ( document.OrderPkgForm.pkgpart.selectedIndex > 0 ) {
-    document.OrderPkgForm.submit.disabled = false;
-  } else {
-    document.OrderPkgForm.submit.disabled = true;
+
+  function enable_order_pkg () {
+    if ( document.OrderPkgForm.pkgpart.selectedIndex > 0 ) {
+      document.OrderPkgForm.submit.disabled = false;
+    } else {
+      document.OrderPkgForm.submit.disabled = true;
+    }
   }
-}
+
 </SCRIPT>
 
 <% include('/elements/error.html') %>
@@ -19,7 +21,7 @@ function enable_order_pkg () {
 <% ntable("#cccccc", 2) %>
 <TR>
   <TH ALIGN="right">Package</TH>
-  <TD>
+  <TD COLSPAN=7>
     <% include('/elements/select-cust-part_pkg.html',
                  'curr_value' => $pkgpart,
                  'cust_main'  => $cust_main,
@@ -34,10 +36,17 @@ function enable_order_pkg () {
                'curr_value'    => scalar( $cgi->param('refnum') ), #get rid of empty_label first# || $cust_main->refnum,
                'disable_empty' => 1,
                'multiple'      => $conf->exists('pkg_referral-multiple'),
+               'colspan'       => 7,
             )
   %>
 % }
 
+<% include('/elements/tr-select-cust_location.html',
+             'cgi'       => $cgi,
+             'cust_main' => $cust_main,
+          )
+%>
+
 </TABLE>
 
 <BR>
@@ -53,7 +62,7 @@ die "access denied"
 
 my $conf = new FS::Conf;
 
-$cgi->param('custnum') =~ /^(\d+)$/;
+$cgi->param('custnum') =~ /^(\d+)$/ or die "no custnum";
 my $custnum = $1;
 my $cust_main = qsearchs({
   'table'     => 'cust_main',