CM vendor cancellation :ps

This commit is contained in:
sanjeev 2022-02-14 11:02:55 +05:30
parent 8c3ed448d4
commit 2932e968ff

View File

@ -1115,7 +1115,7 @@ class PD_Controller extends REST_Controller {
if($is_mwise_lender && (!empty($agency_id)) && ($agency_id != null) && ((int)$agency_id != 0) && ($pd_details['pd_status'] != "TRIGGERED" || $pd_details['pd_status'] != "QC_COMPLETED"))
{
//newly implemented
if(($pd_details['pd_status'] == "CANCELLED") && $role == 27){
if(($pd_details['pd_status'] == "CANCELLED") && ($role == 27 || $role == 26)){
$pd_details['vendor_status'] = null;
$pd_details['pd_agency_id'] = null;
$pd_details['pd_status'] = $pd_details['pd_status'];