summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/change-cust_pkg.html
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-06-30 05:29:49 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-06-30 05:29:49 -0500
commitcc577407362f8b64817afbe89d23888a0a5b63f9 (patch)
tree2fd341725f902043dcdf470ecc51977824d89a5e /httemplate/edit/process/change-cust_pkg.html
parentd13dae1c37c36c27f1ac9fd134c5d8b3a4fb9754 (diff)
RT#30705: Change contract end date when changing packages [got rid of chronology requirements]
Diffstat (limited to 'httemplate/edit/process/change-cust_pkg.html')
-rw-r--r--httemplate/edit/process/change-cust_pkg.html8
1 files changed, 1 insertions, 7 deletions
diff --git a/httemplate/edit/process/change-cust_pkg.html b/httemplate/edit/process/change-cust_pkg.html
index c066ff5b0..046a9795c 100644
--- a/httemplate/edit/process/change-cust_pkg.html
+++ b/httemplate/edit/process/change-cust_pkg.html
@@ -41,15 +41,9 @@ if ( $cgi->param('locationnum') == -1 ) {
}
my $error;
-my $contract_end;
my $now = time;
if (defined($cgi->param('contract_end'))) {
- $contract_end = parse_datetime($cgi->param('contract_end'));
- if ($contract_end < $now) {
- $error = "Contract end ".$cgi->param('contract_end')." is in the past.";
- } else {
- $change{'contract_end'} = $contract_end;
- }
+ $change{'contract_end'} = parse_datetime($cgi->param('contract_end'));
}
unless ($error) {