text: var year;
  var dataTable;
  var date_from = $("#date_from").val();
  var date_to = $("#date_to").val();
  
  
  $(document).ready(function(){
  
      year();
      report_table();
  
  });
  
  
  
  function report_table()
  {
  
    
          $('#posts').DataTable().clear().destroy();
  
          dataTable = $('#posts').DataTable({
              "processing": true,
              "serverSide": true,
              "ajax":{
               data: { 
                  date_from:date_from, 
                  date_to:date_to 
              },
               "url": global.settings.url + "Transaction_report/report_table",
               "dataType": "json",
               "type": "POST",
               
              },
          "columns": [
                    
                    { "data": "owner"},
                    { "data": "pin" },
                    { "data": "tax_dec_no"},
                    { "data": "payor_name"},
                    { "data": "start_date"},
                    { "data": "due_date"},
                    { "data": "due_basic"},
                    { "data": "due_sef"},
                    { "data": "due_penalty"},
                    { "data": "due_discount"},
                    { "data": "or_number"},
                  //   { "data": "action" },
                 ],
                 'drawCallback':function(settings){
                  console.log(settings);
                  $("#datacollected").html(settings.json.data);
              },    
  
  
  
          });
      
  }
  
  
  
  
  
  
  function print_data() {
      
      $('#print').modal('show');	
      $.ajax({  
          type: 'POST',  
          url: global.settings.url + '/Transaction_report/viewTransactionReport', 
          data: { 
              date_from:date_from, 
              date_to:date_to 
          },
          xhrFields: {
              responseType: 'blob'
          },
          success: function(res) {
              console.log(res);
             
              var url = window.URL.createObjectURL(res);
              $('#myframe').attr('src',url);
          },
          error: function(xhr){
              xhr.responseText()
          }
          });
  }
  
  
  function printmodalshow()
  {
      $('#print').modal('hide');	
  
      var myIframe = document.getElementById("myframe").contentWindow;
      myIframe.focus();
      console.log("true");
      myIframe.print();
      return false;
  }
  
  
  
  
  
  
  
  
  
  
  
  