summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_main/packages/status.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/view/cust_main/packages/status.html')
-rw-r--r--httemplate/view/cust_main/packages/status.html29
1 files changed, 28 insertions, 1 deletions
diff --git a/httemplate/view/cust_main/packages/status.html b/httemplate/view/cust_main/packages/status.html
index a149562c2..1d3de85b7 100644
--- a/httemplate/view/cust_main/packages/status.html
+++ b/httemplate/view/cust_main/packages/status.html
@@ -175,7 +175,7 @@
</TR>
% }
-% } 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') )
+% {
+
+ <TR>
+ <TD COLSPAN=<%$opt{colspan}%>>
+ <FONT SIZE=-1>
+ (&nbsp;<% pkg_change_start_link($cust_pkg) %>&nbsp;)
+ </FONT>
+ </TD>
+ </TR>
+% }
+
% }
%
% } else { #setup
@@ -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',