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'];
|
||||
break;
|
||||
case 'index':
|
||||
if(isset($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';
|
||||
// if(isset($p['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';
|
||||
break;
|
||||
case 'show':
|
||||
$config['where']['id'] = $p['id'];
|
||||
|
||||
@@ -65,9 +65,14 @@ class InvRequisitionReturnService
|
||||
$config['where']['id'] = $p['requisition_item_return_id'];
|
||||
break;
|
||||
case 'index':
|
||||
if(isset($p['status'])){
|
||||
if(isset($p['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';
|
||||
break;
|
||||
case 'show':
|
||||
|
||||
Reference in New Issue
Block a user