Merge branch 'feature/inv' into develop
This commit is contained in:
@@ -553,15 +553,15 @@ class InvRequisitionItemReturnService
|
|||||||
$config['where']['id'] = $p['requisition_item_return_id'];
|
$config['where']['id'] = $p['requisition_item_return_id'];
|
||||||
break;
|
break;
|
||||||
case 'index':
|
case 'index':
|
||||||
if(isset($p['status'])){
|
// if(isset($p['status']) && $p['status']!=''){
|
||||||
$config['where']['status'] = $p['status'];
|
// $config['where']['status'] = $p['status'];
|
||||||
}
|
// }
|
||||||
if(isset($p['handler_id']) && $p['handler_id']=='self'){
|
// if(isset($p['handler_id']) && $p['handler_id']=='self'){
|
||||||
$config['where']['applicant_id'] = $request->user->uid;
|
// $config['where']['applicant_id'] = $request->user->uid;
|
||||||
}else{
|
// }else{
|
||||||
$config['where']['handler_id'] = $request->user->uid;
|
// $config['where']['handler_id'] = $request->user->uid;
|
||||||
}
|
// }
|
||||||
$config['order']['id'] = 'desc';
|
// $config['order']['id'] = 'desc';
|
||||||
break;
|
break;
|
||||||
case 'show':
|
case 'show':
|
||||||
$config['where']['id'] = $p['id'];
|
$config['where']['id'] = $p['id'];
|
||||||
|
|||||||
@@ -65,9 +65,14 @@ class InvRequisitionReturnService
|
|||||||
$config['where']['id'] = $p['requisition_item_return_id'];
|
$config['where']['id'] = $p['requisition_item_return_id'];
|
||||||
break;
|
break;
|
||||||
case 'index':
|
case 'index':
|
||||||
if(isset($p['status'])){
|
if(isset($p['status']) && $p['status']!=''){
|
||||||
$config['where']['status'] = $p['status'];
|
$config['where']['status'] = $p['status'];
|
||||||
}
|
}
|
||||||
|
if (isset($p['handler_id']) && $p['handler_id'] == 'self') {
|
||||||
|
$config['where']['applicant_id'] = $request->user->uid;
|
||||||
|
} else {
|
||||||
|
$config['where']['handler_id'] = $request->user->uid;
|
||||||
|
}
|
||||||
$config['order']['id'] = 'desc';
|
$config['order']['id'] = 'desc';
|
||||||
break;
|
break;
|
||||||
case 'show':
|
case 'show':
|
||||||
|
|||||||
Reference in New Issue
Block a user