fix adding new one-time charges, from #26282
authorMark Wells <mark@freeside.biz>
Tue, 21 Jan 2014 22:06:03 +0000 (14:06 -0800)
committerMark Wells <mark@freeside.biz>
Tue, 21 Jan 2014 22:06:03 +0000 (14:06 -0800)
httemplate/edit/quick-charge.html

index 7b88bcc..e141e7d 100644 (file)
@@ -459,6 +459,6 @@ if ( $cust_pkg ) { # set defaults
   }
 }
 
-my $billed = $cust_pkg->get('setup') ? 1 : 0;
+my $billed = ($cust_pkg and $cust_pkg->get('setup')) ? 1 : 0;
 
 </%init>