updated lease type to expire at the END of next month
This commit is contained in:
@@ -107,9 +107,9 @@
|
||||
else if (pdata['l_expire_type'] == '2') {
|
||||
//var today = new Date();
|
||||
var today = new Date($('#mod_date').val());
|
||||
var lastDayOfMonth = new Date(today.getFullYear(), today.getMonth()+1);
|
||||
$('#expire_date').html(lastDayOfMonth.getFullYear() + '-' + ('0' + (lastDayOfMonth.getMonth()+1)).slice(-2) + '-' + ('0' + today.getDate()).slice(-2));
|
||||
$('#mod_expire_date').val(lastDayOfMonth.getFullYear() + '-' + ('0' + (lastDayOfMonth.getMonth()+1)).slice(-2) + '-' + ('0' + today.getDate()).slice(-2));
|
||||
var lastDayOfMonth = new Date(today.getFullYear(), today.getMonth()+2, 0);
|
||||
$('#expire_date').html(lastDayOfMonth.getFullYear() + '-' + ('0' + (lastDayOfMonth.getMonth()+1)).slice(-2) + '-' + ('0' + lastDayOfMonth.getDate()).slice(-2));
|
||||
$('#mod_expire_date').val(lastDayOfMonth.getFullYear() + '-' + ('0' + (lastDayOfMonth.getMonth()+1)).slice(-2) + '-' + ('0' + lastDayOfMonth.getDate()).slice(-2));
|
||||
}
|
||||
else if (pdata['l_expire_type'] == '3') {
|
||||
$('#expire_date').html(pdata['l_expire_date']);
|
||||
|
||||
Reference in New Issue
Block a user