function requiredAdvanceNoticeIsSatisifed(userEnteredDateTime){
        var selected_date = convertEnteredDateTime(userEnteredDateTime);
        var current_date = new Date();
        var max_days = getMaxAdvanceNotice(advance_notice_list);
        var max_advance_notice_required = new Date(current_date.setDate(current_date.getDate() + max_days));
        if(selected_date > max_advance_notice_required){
            return true;
        }
        return false;
    }
// for example, if one product requires 3 and another one 7, then 7 days advance notice must be given 
for example, if one product requires 3 and another one 7, then 7 days advance notice must be given
for example if one product requires 3 and another one 7 then 7 days advance notice must be given
function requiredAdvanceNoticeIsSatisifed(userEnteredDateTime){
        var selected_date = convertEnteredDateTime(userEnteredDateTime);
        var current_date = new Date();
        var max_days = getMaxAdvanceNotice(advance_notice_list);
        var max_advance_notice_required = new Date(current_date.setDate(current_date.getDate() + max_days));
        if(selected_date > max_advance_notice_required){
            return true;
        }
        return false;
    }
function requiredAdvanceNoticeIsSatisifed ( userEnteredDateTime ) { var selected_date = convertEnteredDateTime ( userEnteredDateTime ) ; var current_date = new Date ( ) ; var max_days = getMaxAdvanceNotice ( advance_notice_list ) ; var max_advance_notice_required = new Date ( current_date . setDate ( current_date . getDate ( ) + max_days ) ) ; if ( selected_date > max_advance_notice_required ) { return true ; } return false ; }
for example, if one product requires 3 and another one 7, then 7 days advance notice must be given
for example if one product requires 3 and another one 7 then 7 days advance notice must be given