| 
      
            Lines 1505-1520
          
      
      
        Link Here
      
     | 
  
        
          | 1505 | 
                              } else if ( i == 9 ) { | 
          1505 | 
                              } else if ( i == 9 ) { | 
        
        
          | 1506 | 
                                  // specific processing for Hard due date  | 
          1506 | 
                                  // specific processing for Hard due date  | 
        
        
          | 1507 | 
                                  $(current_column).find("select").val(itm_code); | 
          1507 | 
                                  $(current_column).find("select").val(itm_code); | 
        
          
            
              | 1508 | 
                                      if (itm_text) { | 
              1508 | 
                                      if (is_valid_date(itm_text)) { | 
            
        
          | 1509 | 
                                      input_values = itm_text.split(' '); | 
          1509 | 
                                      input_values = itm_text.split(' '); | 
        
          
            
              | 1510 | 
                                          var fp = $('#hardduedate').flatpickr(); | 
              1510 | 
                                          var fp = document.querySelector("#hardduedate")._flatpickr; | 
            
        
          | 1511 | 
                                      var hardduedate = fp.parseDate( input_values[1], flatpickr_dateformat_string );  | 
          1511 | 
                                      var hardduedate = fp.parseDate( input_values[1], flatpickr_dateformat_string );  | 
        
        
          | 1512 | 
                                      if( hardduedate) fp.setDate( hardduedate, 1 );  | 
          1512 | 
                                      if( hardduedate) fp.setDate( hardduedate, 1 );  | 
        
        
          | 1513 | 
                                  }  | 
          1513 | 
                                  }  | 
        
        
          | 1514 | 
                              } else if ( i == 26 ) { | 
          1514 | 
                              } else if ( i == 26 ) { | 
        
        
          | 1515 | 
                                  // specific processing for No automatic renewal after (hard limit)  | 
          1515 | 
                                  // specific processing for No automatic renewal after (hard limit)  | 
        
          
            
              | 1516 | 
                                      if (itm_text) { | 
              1516 | 
                                      if (is_valid_date(itm_text)) { | 
            
            
              | 1517 | 
                                          var fp = $('#no_auto_renewal_after_hard_limit').flatpickr(); | 
              1517 | 
                                          var fp = document.querySelector("#no_auto_renewal_after_hard_limit")._flatpickr; | 
            
        
          | 1518 | 
                                      var renewdate = fp.parseDate( itm_text, flatpickr_dateformat_string );  | 
          1518 | 
                                      var renewdate = fp.parseDate( itm_text, flatpickr_dateformat_string );  | 
        
        
          | 1519 | 
                                      if( renewdate) fp.setDate( renewdate, 1 );  | 
          1519 | 
                                      if( renewdate) fp.setDate( renewdate, 1 );  | 
        
        
          | 1520 | 
                                  }  | 
          1520 | 
                                  }  | 
        
            
              | 1521 | 
              -   | 
               | 
               |