From: Mark Wells Date: Tue, 28 Apr 2015 18:30:59 +0000 (-0700) Subject: fix syntax errors X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=d129179308646fb4eba078f1afe1fa2ddad51fbb fix syntax errors --- diff --git a/httemplate/view/cust_main/packages/section.html b/httemplate/view/cust_main/packages/section.html index e38c34fe8..ce965c56a 100755 --- a/httemplate/view/cust_main/packages/section.html +++ b/httemplate/view/cust_main/packages/section.html @@ -21,7 +21,7 @@ no_services )), #for status.html - 'has_cust_payby_auto' => $cust_main->has_cust_payby_auto, + 'has_cust_payby_auto' => $opt{cust_main}->has_cust_payby_auto, &> % } % } else { # there are no packages diff --git a/httemplate/view/cust_main/packages/status.html b/httemplate/view/cust_main/packages/status.html index 3515b38e1..5dbffb2f0 100644 --- a/httemplate/view/cust_main/packages/status.html +++ b/httemplate/view/cust_main/packages/status.html @@ -495,7 +495,7 @@ sub pkg_status_row_detached { sub pkg_status_row_noauto { my( $cust_pkg, %opt ) = @_; - return '' unless ( $cust_pkg->no_auto || $opt{'part_pkg'}->no_auto ); + return '' unless ( $cust_pkg->no_auto || $opt{'part_pkg'}->no_auto ) && $opt{'has_cust_payby_auto'}; pkg_status_row_colspan( $cust_pkg, emt("No automatic charge"), '');