LIVE ALLOCATED CASE COLLAPSE ISSUE RESOLVED
This commit is contained in:
parent
6e2c6ab230
commit
1b92c49363
@ -1869,6 +1869,9 @@ public function assignPDTempalate($data)
|
|||||||
*/
|
*/
|
||||||
public function listLessPDDetails_get()
|
public function listLessPDDetails_get()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
//check empty query params
|
||||||
|
$this->checkEmptyQueryParams($_GET);
|
||||||
$page = 0;$limit = 1000;$sort = 'DESC';$pdofficerid = "";$datetype = "";$fdate ="";$tdate ="";
|
$page = 0;$limit = 1000;$sort = 'DESC';$pdofficerid = "";$datetype = "";$fdate ="";$tdate ="";
|
||||||
$lenderid = "";$status="";$lender_details = array();
|
$lenderid = "";$status="";$lender_details = array();
|
||||||
if($this->get('page')) { $page = $this->get('page'); }
|
if($this->get('page')) { $page = $this->get('page'); }
|
||||||
@ -1886,7 +1889,6 @@ public function assignPDTempalate($data)
|
|||||||
if($this->get('fdate')) { $fdate = $this->get('fdate'); }
|
if($this->get('fdate')) { $fdate = $this->get('fdate'); }
|
||||||
if($this->get('tdate')) { $tdate = $this->get('tdate'); }
|
if($this->get('tdate')) { $tdate = $this->get('tdate'); }
|
||||||
if($this->get('status')) { $status = $this->get('status'); }
|
if($this->get('status')) { $status = $this->get('status'); }
|
||||||
|
|
||||||
$result_data = $this->PD_Model->listLessPDDetails($page,$limit,$sort,$pdofficerid,$datetype,$fdate,$tdate,$lenderid,$status,$lender_details);
|
$result_data = $this->PD_Model->listLessPDDetails($page,$limit,$sort,$pdofficerid,$datetype,$fdate,$tdate,$lenderid,$status,$lender_details);
|
||||||
|
|
||||||
if($result_data['data_status'] == true)
|
if($result_data['data_status'] == true)
|
||||||
@ -1905,6 +1907,25 @@ public function assignPDTempalate($data)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function checkEmptyQueryParams($arr)
|
||||||
|
{
|
||||||
|
if(count($arr))
|
||||||
|
{
|
||||||
|
foreach ($arr as $key => $value)
|
||||||
|
{
|
||||||
|
if(!$value)
|
||||||
|
{
|
||||||
|
|
||||||
|
//exit('CATUTION');
|
||||||
|
$data['dataStatus'] = false;
|
||||||
|
$data['status'] = REST_Controller::HTTP_UNPROCESSABLE_ENTITY;
|
||||||
|
$data['msg'] = 'Unprocessable Params';
|
||||||
|
$this->response($data,REST_Controller::HTTP_OK);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
// PD listing based on lender role hierarchy
|
// PD listing based on lender role hierarchy
|
||||||
function getLenderHierarchyForPDListing($lender_user_id)
|
function getLenderHierarchyForPDListing($lender_user_id)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user