summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-06-15 23:37:48 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-07-01 00:02:19 -0500
commita3696f50ea05e5b8f87c24c5298fc35bee03fc75 (patch)
tree10ffbcefb4c94b332e904d47d559369c6d7b20f2 /httemplate/view
parent9313346347265c5a1ad3e1da8f2fcbb965a9d6cd (diff)
RT#30705 Change contract end date when changing packages
Diffstat (limited to 'httemplate/view')
-rw-r--r--httemplate/view/cust_main/packages/status.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/view/cust_main/packages/status.html b/httemplate/view/cust_main/packages/status.html
index 047abda0b..3063e3fc8 100644
--- a/httemplate/view/cust_main/packages/status.html
+++ b/httemplate/view/cust_main/packages/status.html
@@ -417,6 +417,10 @@ sub pkg_status_row_expire {
} elsif ( $cust_pkg->change_to_pkg->locationnum != $cust_pkg->locationnum )
{
$title = mt('Will <b>change location</b> on');
+ } elsif (( $cust_pkg->change_to_pkg->quantity != $cust_pkg->quantity ) ||
+ ( $cust_pkg->change_to_pkg->contract_end != $cust_pkg->contract_end ))
+ {
+ $title = mt('Will change on');
} else {
# FS::cust_pkg->change_later should have prevented this, but
# just so that we can display _something_