LIVE ALLOCATED CASE COLLAPSE ISSUE RESOLVED
This commit is contained in:
parent
6e2c6ab230
commit
1b92c49363
@ -1869,13 +1869,16 @@ public function assignPDTempalate($data)
|
||||
*/
|
||||
public function listLessPDDetails_get()
|
||||
{
|
||||
|
||||
//check empty query params
|
||||
$this->checkEmptyQueryParams($_GET);
|
||||
$page = 0;$limit = 1000;$sort = 'DESC';$pdofficerid = "";$datetype = "";$fdate ="";$tdate ="";
|
||||
$lenderid = "";$status="";$lender_details = array();
|
||||
if($this->get('page')) { $page = $this->get('page'); }
|
||||
if($this->get('limit')){ $limit = $this->get('limit'); }
|
||||
if($this->get('sort')) { $sort = $this->get('sort'); }
|
||||
if($this->get('pdofficerid')) { $pdofficerid = $this->get('pdofficerid'); }
|
||||
if($this->get('lenderid'))
|
||||
if($this->get('lenderid'))
|
||||
{
|
||||
$lenderid = $this->get('lenderid');
|
||||
$lender_details = $this->getLenderHierarchyForPDListing($lenderid);
|
||||
@ -1886,7 +1889,6 @@ public function assignPDTempalate($data)
|
||||
if($this->get('fdate')) { $fdate = $this->get('fdate'); }
|
||||
if($this->get('tdate')) { $tdate = $this->get('tdate'); }
|
||||
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);
|
||||
|
||||
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
|
||||
function getLenderHierarchyForPDListing($lender_user_id)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user