From d129179308646fb4eba078f1afe1fa2ddad51fbb Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Tue, 28 Apr 2015 11:30:59 -0700 Subject: [PATCH] fix syntax errors --- httemplate/view/cust_main/packages/section.html | 2 +- httemplate/view/cust_main/packages/status.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"), ''); -- 2.11.0