diff --git a/app/common/repositories/system/merchant/MerchantIntentionRepository.php b/app/common/repositories/system/merchant/MerchantIntentionRepository.php index 04513bb2..616d09ba 100644 --- a/app/common/repositories/system/merchant/MerchantIntentionRepository.php +++ b/app/common/repositories/system/merchant/MerchantIntentionRepository.php @@ -149,7 +149,8 @@ class MerchantIntentionRepository extends BaseRepository $wholesale = 2; } if ($wholesale) { - Merchant::getDB()->where('mer_id',$check)->update(['wholesale'=>$wholesale]); + Merchant::getDB()->where('mer_id',$check) + ->update(['wholesale'=>$wholesale,'type_id'=>$intention->mer_type_id]); } }else{