X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages%2Fstatus.html;h=001c1287672569c5eec5c36fa1d8e66bb211b763;hb=fcd7e712ea5286c418dd4f77c4faa41544d95f0b;hp=aa5320bd843c9bf4ff1b9c6a668dd46388f25a6d;hpb=d2916480d64ae7b0b86bd73feabc1c5a45b664f7;p=freeside.git diff --git a/httemplate/view/cust_main/packages/status.html b/httemplate/view/cust_main/packages/status.html index aa5320bd8..001c12876 100644 --- a/httemplate/view/cust_main/packages/status.html +++ b/httemplate/view/cust_main/packages/status.html @@ -136,7 +136,7 @@ % if ( $change_from ) { # future change % <% pkg_status_row_colspan( $cust_pkg, emt('Waiting for package change'), '', %opt ) %> - <% pkg_status_row( $cust_pkg, + <% pkg_status_row_if( $cust_pkg, emt('Will be activated on'), 'start_date', %opt ) %> @@ -175,7 +175,7 @@ % } -% } else { +% } else { # recurring package, not yet billed <% pkg_status_row_colspan($cust_pkg, emt("Not yet billed ($billed_or_prepaid [_1])", myfreq($part_pkg) ), '', %opt ) %> @@ -188,6 +188,21 @@ <% pkg_status_row_if($cust_pkg, emt('Start billing'), 'start_date', %opt) %> <% pkg_status_row_if($cust_pkg, emt('Un-cancelled'), 'uncancel', %opt ) %> +% if ( !$opt{no_links} +% and !$change_from +% and !$supplemental # can be changed from its main package +% and $curuser->access_right('Change package start date') ) +% { + + + > + + ( <% pkg_change_start_link($cust_pkg) %> ) + + + +% } + % } % % } else { #setup @@ -667,7 +682,7 @@ sub pkg_resume_link { sub pkg_unhold_link { include( '/elements/popup_link-cust_pkg.html', - 'action' => $p. 'misc/unhold_pkg.html?', + 'action' => $p. 'misc/unhold_pkg.html', 'label' => emt('Start billing'), 'actionlabel' => emt('Start billing'), 'color' => '#00CC00', @@ -716,7 +731,7 @@ sub pkg_expire_link { sub pkg_change_later_link { my $cust_pkg = shift; include( '/elements/popup_link-cust_pkg.html', - 'action' => $p . 'misc/change_pkg.cgi?', + 'action' => $p . 'misc/change_pkg.cgi', 'label' => emt('Reschedule'), 'actionlabel' => emt('Edit scheduled change for'), 'cust_pkg' => $cust_pkg, @@ -725,6 +740,18 @@ sub pkg_change_later_link { ) } +sub pkg_change_start_link { + my $cust_pkg = shift; + include( '/elements/popup_link-cust_pkg.html', + 'action' => $p . 'misc/change_pkg_start.html', + 'label' => emt('Set start date'), + 'actionlabel' => emt('Set start of billing for'), + 'cust_pkg' => $cust_pkg, + 'width' => 510, + 'height' => 310, + ) +} + sub svc_recharge_link { include( '/elements/popup_link-cust_svc.html', 'action' => $p. 'misc/recharge_svc.html',