From 8f82d54c3b3bd30c8f8451ea24bcdab70ff37327 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Mon, 15 Jun 2015 23:37:48 -0500 Subject: RT#30705 Change contract end date when changing packages --- httemplate/view/cust_main/packages/status.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/packages/status.html b/httemplate/view/cust_main/packages/status.html index 8057d8c3a..81156c927 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 change location 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_ -- cgit v1.2.1