bankmulplefileviewpopwindow

This commit is contained in:
venbatechnologies 2018-07-23 18:12:39 +05:30
parent b960908751
commit 8cb2b21814
5 changed files with 100 additions and 36 deletions

View File

@ -1007,14 +1007,31 @@ class cashbook extends BaseController
$this->loadViews("bankinvoice", $this->global,$data,NULL); $this->loadViews("bankinvoice", $this->global,$data,NULL);
} }
public function filelist()
{
$pono= $this->input->post('pono'); function IGRFilelist()
$data = $this->cashbook_model->debitimage($pono); {
$igrno= $this->input->post('igrno');
$igrsingle = $this->cashbook_model->igrmastersingle($igrno);
$igrmultiple =$this->cashbook_model->igrmastermultiple($igrno);
$data = array_merge($igrsingle,$igrmultiple);
echo json_encode($data); echo json_encode($data);
}
/*end*/
public function filelist()
{
$igrno= $this->input->post('igrno');
$data = $this->cashbook_model->debitimage($igrno);
echo json_encode($data);
} }
public function mappingpo() public function mappingpo()
{ {
$this->global['pageTitle'] = 'Siddharth : Bank Report - Debited Settlements'; $this->global['pageTitle'] = 'Siddharth : Bank Report - Debited Settlements';

View File

@ -513,7 +513,8 @@ class report extends BaseController
$PO= $this->input->post('id'); $PO= $this->input->post('id');
$PONO= substr($PO,5); $PONO= substr($PO,10);
//echo $PONO; die; //echo $PONO; die;
$data = $this->dahsboard_Model->getfile($PONO); $data = $this->dahsboard_Model->getfile($PONO);

View File

@ -429,48 +429,56 @@ function receiptdata()
} }
function debitpolist($bankid) // function debitpolist($bankid)
{ // {
$this->db->select('bp.id,bp.mid,igrm.MaterialRcvdDate,bp.PONO,bp.Suppliername,bp.Totalpoamount,br.Debit, // $this->db->select('bp.id,bp.mid,igrm.MaterialRcvdDate,bp.PONO,bp.Suppliername,bp.Totalpoamount,br.Debit,
bp.Balancetopay,bp.Amountpaid,bp.IGRNO,bp.IGRLineItemNo,igrm.file,bu.FilePath'); // bp.Balancetopay,bp.Amountpaid,bp.IGRNO,bp.IGRLineItemNo,igrm.file,bu.FilePath');
$this->db->from ('T_Bankmappingpo bp'); // $this->db->from ('T_Bankmappingpo bp');
$this->db->join ('T_IGR_Master igrm','bp.IGRNO = igrm.IGRNO','left'); // $this->db->join ('T_IGR_Master igrm','bp.IGRNO = igrm.IGRNO','left');
$this->db->join ('T_PurchaseOrder_BillUpload bu','bu.PONO = bp.PONO','left'); // $this->db->join ('T_PurchaseOrder_BillUpload bu','bu.PONO = bp.PONO','left');
$this->db->join ('T_bankreport br','br.ID=bp.mid'); // $this->db->join ('T_bankreport br','br.ID=bp.mid');
$this->db->where('bp.IsActive',1); // $this->db->where('bp.IsActive',1);
$this->db->where('bp.mid',$bankid); // $this->db->where('bp.mid',$bankid);
// $this->db->where('igrde.BankStatus !=','ST072'); // // $this->db->where('igrde.BankStatus !=','ST072');
$this->db->group_by('bp.id'); // $this->db->group_by('bp.id');
$query = $this->db->get(); // $query = $this->db->get();
return $query->result(); // return $query->result();
} // }
//function for image //function for image
function debitimage($pono) function debitimage($igrno)
{ {
$this->db->select('bp.PONO,bp.mid,bu.FilePath,bu.BillNo,bu.IGRNO'); // $this->db->select('bp.PONO,bp.mid,bu.FilePath,bu.BillNo,bu.IGRNO');
$this->db->from ('T_Bankmappingpo bp'); // $this->db->from ('T_Bankmappingpo bp');
$this->db->join ('T_PurchaseOrder_BillUpload bu','bp.PONO = bu.PONO','left'); // $this->db->join ('T_PurchaseOrder_BillUpload bu','bp.PONO = bu.PONO','left');
$this->db->where('bp.PONO',$pono); // $this->db->where('bp.PONO',$pono);
$this->db->group_by('bu.BillNo'); // $this->db->group_by('bu.BillNo');
$query = $this->db->get(); // $query = $this->db->get();
return $query->result(); // return $query->result();
} $this->db->select('*');
$this->db->from ('T_PurchaseOrder_BillUpload');
$this->db->where('IGRNO',$igrno);
$query = $this->db->get();
$result = $query->result();
return $result;
}
function debitpolistfilter($SupplierName,$fdate,$tdate) function debitpolistfilter($SupplierName,$fdate,$tdate)
{ {
$this->db->select('bm.id,bm.mid,igrm.MaterialRcvdDate,bm.PONO,bm.Suppliername,bm.Totalpoamount, $this->db->select('bm.id,bm.mid,igrm.MaterialRcvdDate,bm.PONO,bm.Suppliername,bm.Totalpoamount,
bm.Balancetopay,bm.Amountpaid,bm.IGRNO,igrm.file,bm.IGRLineItemNo,br.Clearbalance,br.Balancetocleared,bu.FilePath,bu.BillNo'); bm.Balancetopay,bm.Amountpaid,bm.IGRNO,igrm.file,bm.IGRLineItemNo,br.Clearbalance,br.Balancetocleared,bu.FilePath,bu.BillNo,inward.FilePath as Fpath');
$this->db->from ('T_Bankmappingpo bm'); $this->db->from ('T_Bankmappingpo bm');
$this->db->join ('T_IGR_Master igrm','igrm.IGRNO = bm.IGRNO'); $this->db->join ('T_IGR_Master igrm','igrm.IGRNO = bm.IGRNO');
//$this->db->join ('T_IGR_Details igrde','igrde.IGRNO=igrm.IGRNO'); //$this->db->join ('T_IGR_Details igrde','igrde.IGRNO=igrm.IGRNO');
$this->db->join ('T_SupplierDetailsN sd','sd.SupplierName = bm.Suppliername'); $this->db->join ('T_SupplierDetailsN sd','sd.SupplierName = bm.Suppliername');
$this->db->join ('T_bankreport br','br.ID=bm.mid'); $this->db->join ('T_bankreport br','br.ID=bm.mid');
$this->db->join('T_Inwardgateregister_fileupload inward','inward.IGRNO =igrm.IGRNO','left');
$this->db->join ('T_PurchaseOrder_BillUpload bu','bm.PONO=bu.PONO','left'); $this->db->join ('T_PurchaseOrder_BillUpload bu','bm.PONO=bu.PONO','left');
if($fdate!='' && $tdate!='') if($fdate!='' && $tdate!='')
{ {
@ -488,6 +496,42 @@ function debitpolist($bankid)
} }
function igrmastersingle($igrno)
{
$this->db->select('IGRNO,file,PONO as pono');
$this->db->from('T_IGR_Master');
$this->db->where('IGRNO',$igrno);
$query = $this->db->get();
return $query->result();
}
function igrmastermultiple($igrno)
{
$this->db->select('BillNo,IGRNO,FilePath,PONO');
$this->db->from('T_Inwardgateregister_fileupload');
$this->db->where('IGRNO',$igrno);
$query = $this->db->get();
return $query->result();
}
function debitpolist($bankid)
{
$this->db->select('bp.id,bp.mid,igrm.MaterialRcvdDate,bp.PONO,bp.Suppliername,bp.Totalpoamount,br.Debit,bp.Balancetopay,bp.Amountpaid,bp.IGRNO,bp.IGRLineItemNo,igrm.file,bu.FilePath,inward.FilePath as Fpath');
$this->db->from ('T_Bankmappingpo bp');
$this->db->join ('T_IGR_Master igrm','bp.IGRNO = igrm.IGRNO','left');
$this->db->join ('T_PurchaseOrder_BillUpload bu','bu.PONO = bp.PONO','left');
$this->db->join('T_Inwardgateregister_fileupload inward','inward.IGRNO =igrm.IGRNO','left');
$this->db->join ('T_bankreport br','br.ID=bp.mid');
$this->db->where('bp.IsActive',1);
$this->db->where('bp.mid',$bankid);
// $this->db->where('igrde.BankStatus !=','ST072');
$this->db->group_by('bp.id');
$query = $this->db->get();
return $query->result();
}
function creditinvoicelist($bankid) function creditinvoicelist($bankid)
{ {
$this->db->select('bm.indate,bm.invoiceno,bm.customername,bm.totinvoiceamount,bm.bankid, $this->db->select('bm.indate,bm.invoiceno,bm.customername,bm.totinvoiceamount,bm.bankid,

View File

@ -480,6 +480,7 @@ $( function() {
if(Filename != null) if(Filename != null)
{ {
i=i+1; i=i+1;
i=i-1;
trHTML += '<tr id='+i+'>' + trHTML += '<tr id='+i+'>' +
'<td align="right">' + i + '</td>' + '<td align="right">' + i + '</td>' +
'<td id="billno'+i+'">' + BillNO+ '</td>' + '<td id="billno'+i+'">' + BillNO+ '</td>' +

View File

@ -592,10 +592,11 @@ function pono(i)
FilePath =item.file; FilePath =item.file;
} }
i=0;
if(Filename != null) if(Filename != null)
{ {
i=i+1; i=i+1;
i=i-1;
trHTML += '<tr id='+i+'>' + trHTML += '<tr id='+i+'>' +
'<td align="right">' + i + '</td>' + '<td align="right">' + i + '</td>' +
'<td id="billno'+i+'">' + BillNO+ '</td>' + '<td id="billno'+i+'">' + BillNO+ '</td>' +