bankmulplefileviewpopwindow
This commit is contained in:
parent
b960908751
commit
8cb2b21814
@ -1007,14 +1007,31 @@ class cashbook extends BaseController
|
||||
$this->loadViews("bankinvoice", $this->global,$data,NULL);
|
||||
|
||||
}
|
||||
public function filelist()
|
||||
|
||||
|
||||
function IGRFilelist()
|
||||
{
|
||||
$pono= $this->input->post('pono');
|
||||
$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);
|
||||
|
||||
|
||||
}
|
||||
/*end*/
|
||||
|
||||
public function filelist()
|
||||
|
||||
{
|
||||
$igrno= $this->input->post('igrno');
|
||||
$data = $this->cashbook_model->debitimage($igrno);
|
||||
|
||||
echo json_encode($data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function mappingpo()
|
||||
{
|
||||
$this->global['pageTitle'] = 'Siddharth : Bank Report - Debited Settlements';
|
||||
|
||||
@ -513,7 +513,8 @@ class report extends BaseController
|
||||
|
||||
$PO= $this->input->post('id');
|
||||
|
||||
$PONO= substr($PO,5);
|
||||
$PONO= substr($PO,10);
|
||||
|
||||
//echo $PONO; die;
|
||||
|
||||
$data = $this->dahsboard_Model->getfile($PONO);
|
||||
|
||||
@ -429,34 +429,41 @@ function receiptdata()
|
||||
|
||||
}
|
||||
|
||||
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');
|
||||
$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_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 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');
|
||||
// $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_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 for image
|
||||
|
||||
function debitimage($pono)
|
||||
function debitimage($igrno)
|
||||
{
|
||||
$this->db->select('bp.PONO,bp.mid,bu.FilePath,bu.BillNo,bu.IGRNO');
|
||||
$this->db->from ('T_Bankmappingpo bp');
|
||||
$this->db->join ('T_PurchaseOrder_BillUpload bu','bp.PONO = bu.PONO','left');
|
||||
$this->db->where('bp.PONO',$pono);
|
||||
$this->db->group_by('bu.BillNo');
|
||||
// $this->db->select('bp.PONO,bp.mid,bu.FilePath,bu.BillNo,bu.IGRNO');
|
||||
// $this->db->from ('T_Bankmappingpo bp');
|
||||
// $this->db->join ('T_PurchaseOrder_BillUpload bu','bp.PONO = bu.PONO','left');
|
||||
// $this->db->where('bp.PONO',$pono);
|
||||
// $this->db->group_by('bu.BillNo');
|
||||
// $query = $this->db->get();
|
||||
// return $query->result();
|
||||
|
||||
$this->db->select('*');
|
||||
$this->db->from ('T_PurchaseOrder_BillUpload');
|
||||
$this->db->where('IGRNO',$igrno);
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
@ -465,12 +472,13 @@ function debitpolist($bankid)
|
||||
function debitpolistfilter($SupplierName,$fdate,$tdate)
|
||||
{
|
||||
$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->join ('T_IGR_Master igrm','igrm.IGRNO = bm.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_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');
|
||||
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)
|
||||
{
|
||||
$this->db->select('bm.indate,bm.invoiceno,bm.customername,bm.totinvoiceamount,bm.bankid,
|
||||
|
||||
@ -480,6 +480,7 @@ $( function() {
|
||||
if(Filename != null)
|
||||
{
|
||||
i=i+1;
|
||||
i=i-1;
|
||||
trHTML += '<tr id='+i+'>' +
|
||||
'<td align="right">' + i + '</td>' +
|
||||
'<td id="billno'+i+'">' + BillNO+ '</td>' +
|
||||
|
||||
@ -592,10 +592,11 @@ function pono(i)
|
||||
FilePath =item.file;
|
||||
}
|
||||
|
||||
i=0;
|
||||
|
||||
if(Filename != null)
|
||||
{
|
||||
i=i+1;
|
||||
i=i-1;
|
||||
trHTML += '<tr id='+i+'>' +
|
||||
'<td align="right">' + i + '</td>' +
|
||||
'<td id="billno'+i+'">' + BillNO+ '</td>' +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user