secondary offering issue fixed
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user