load billing events faster, RT#21572
authorIvan Kohler <ivan@freeside.biz>
Sun, 15 Mar 2015 23:20:08 +0000 (16:20 -0700)
committerIvan Kohler <ivan@freeside.biz>
Sun, 15 Mar 2015 23:20:08 +0000 (16:20 -0700)
FS/FS/ClientAPI/MasonComponent.pm
httemplate/elements/select-part_pkg.html
httemplate/elements/tr-select-cust-part_pkg.html

index 8a31185..695b4ca 100644 (file)
@@ -100,6 +100,7 @@ my %session_callbacks = (
     $args{part_pkg} = \@part_pkg;
     $args{first_svc} = \@first_svc;
     $args{no_comment} = 1;
+    $args{label_callback} = sub { shift->pkg_comment };
     @$argsref = ( %args );
     return ''; #no error
 
index bf58191..237d7df 100644 (file)
@@ -21,7 +21,7 @@ Example:
      'agent_null'     => 1,
      'name_col'       => 'pkg',
      'empty_label'    => 'Select package', #should this be the default?
-     'label_callback' => $opt{'label_callback'} || sub { shift->pkg_comment },
+     'label_callback' => $opt{'label_callback'} || sub { shift->pkg_comment_only },
      'hashref'        => \%hash,
      %opt,
 &>
index 0db989a..23916d9 100644 (file)
   <TH ALIGN="right"><% mt('Package') |h %></TH>
   <TD COLSPAN=7>
     <& /elements/select-cust-part_pkg.html,
-                 'curr_value'    => $opt{'curr_value'}, #$pkgpart
-                 'classnum'      => $opt{'classnum'},
-                 'cust_main'     => $opt{'cust_main'},  #$cust_main
-                 'prospect_main' => $opt{'prospect_main'},  #$prospect_main
-                 'onchange'      => 'pkg_changed',
+                 'curr_value'     => $opt{'curr_value'}, #$pkgpart
+                 'classnum'       => $opt{'classnum'},
+                 'cust_main'      => $opt{'cust_main'},  #$cust_main
+                 'prospect_main'  => $opt{'prospect_main'},  #$prospect_main
+                 'onchange'       => 'pkg_changed',
+                 'label_callback' => sub { shift->pkg_comment },
     &>
   </TD>
 </TR>