- Fix Quick charge page.
authorFernando Kiernan <fkiernan@id.net.ar>
Sat, 18 Jan 2014 17:23:53 +0000 (14:23 -0300)
committerIvan Kohler <ivan@freeside.biz>
Sun, 19 Jan 2014 06:07:02 +0000 (22:07 -0800)
httemplate/edit/quick-charge.html

index 7b88bcc..0db1543 100644 (file)
@@ -446,6 +446,7 @@ if ( $cgi->param('classnum') =~ /^(\d+)$/ ) {
 }
 
 my $part_pkg;
+my $billed = 0;
 
 if ( $cust_pkg ) { # set defaults
   $part_pkg = $cust_pkg->part_pkg;
@@ -457,8 +458,7 @@ if ( $cust_pkg ) { # set defaults
       push @description, $part_pkg->option("additional_info$i",1);
     }
   }
+  $billed = $cust_pkg->get('setup') ? 1 : 0;
 }
 
-my $billed = $cust_pkg->get('setup') ? 1 : 0;
-
 </%init>