secondary offering issue fixed

This commit is contained in:
Ritikesh yadav
2024-06-13 12:29:00 +05:30
parent 3ccc5dad80
commit d1e019dee5

View File

@@ -82,17 +82,18 @@ class MarketplaceFractionalRealEstateSeller extends Model
// return $totalSellUnits += (int)$data->no_of_units_you_wish_to_buy;
// });
// $id = $this->id;
if(MarketplaceBuyerForm::where(['associated_id'=>$id,'table' => 'marketplace_fre_sellers'])->exists())
if(MarketplaceBuyerForm::where(['associated_id'=>$this->id,'table' => 'marketplace_fre_sellers'])->exists())
{
$getFREData = MarketplaceFractionalRealEstateSeller::where('id',$id)->first();
$getFREData = MarketplaceFractionalRealEstateSeller::where('id',$this->id)->first();
// dd((int)$getFREData->current_market_value_of_the_property <= 0);
// $aifData = (int)$getFREData->no_of_units_you_wish_to_sell;
// $remainUnits = $aifData - $totalSellUnits;
if($getFREData->current_market_value_of_the_property <= 0)
if((int)$getFREData->current_market_value_of_the_property <= 0)
{
return 'SOLD';
}
else{
return 'OPEN';
return 'OPEN';
}
}else{
return 'OPEN';