[freeside-commits] branch master updated. 3e5bee7db5e58a9938edc3926d55d7e71688ddb2

Jonathan Prykop jonathan at 420.am
Fri Jul 29 16:57:41 PDT 2016


The branch, master has been updated
       via  3e5bee7db5e58a9938edc3926d55d7e71688ddb2 (commit)
      from  f8ab406212ded0c4d3b733ae20d8ba0ab10691ae (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3e5bee7db5e58a9938edc3926d55d7e71688ddb2
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Fri Jul 29 18:57:14 2016 -0500

    RT#71009: (v4+) OFM - Separate permissions for edit dates and contract dates [tweaked now handling]

diff --git a/httemplate/misc/change_pkg_date.html b/httemplate/misc/change_pkg_date.html
index 0a23805..642a5b8 100755
--- a/httemplate/misc/change_pkg_date.html
+++ b/httemplate/misc/change_pkg_date.html
@@ -17,7 +17,7 @@
     value => 'now',
     curr_value => $when,
   &>
-  <label for="when_now"><% emt('Now') %></label>
+  <label for="when_now"><% emt($isstart ? 'Now' : 'Never') %></label>
 </LI>
 % if ( $next_bill_date ) {
 <LI>
diff --git a/httemplate/misc/process/change_pkg_date.html b/httemplate/misc/process/change_pkg_date.html
index 5b1eedf..3084ec5 100755
--- a/httemplate/misc/process/change_pkg_date.html
+++ b/httemplate/misc/process/change_pkg_date.html
@@ -38,8 +38,9 @@ my $cust_main = $cust_pkg->cust_main;
 my $error;
 my $date_value;
 if ( $cgi->param('when') eq 'now' ) {
-  # blank start means start it the next time billing runs
-  $date_value = $isstart ? '' : time;
+  # blank start means start it the next time billing runs ("Now")
+  # blank contract end means it never ends ("Never")
+  $date_value = '';
 } elsif ( $cgi->param('when') eq 'next_bill_date' ) {
   $date_value = $cust_main->next_bill_date;
 } elsif ( $cgi->param('when') eq 'date' ) {

-----------------------------------------------------------------------

Summary of changes:
 httemplate/misc/change_pkg_date.html         |    2 +-
 httemplate/misc/process/change_pkg_date.html |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list