fixing changes
This commit is contained in:
@@ -232,6 +232,10 @@ class OverviewController extends Controller
|
||||
{
|
||||
// dd('inside');
|
||||
$getFREData = MarketplaceFractionalRealEstateSeller::where('id',$marketPlaceId)->first();
|
||||
if((int)$getFREData->current_market_value_of_the_property <= 0)
|
||||
{
|
||||
return response()->json(['status' => 400, 'message' => 'Product cannot be sold. because product has no value.']);
|
||||
}
|
||||
$freValue = (int)$getFREData->current_market_value_of_the_property;
|
||||
$nowValue = $freValue - $getBuyingPurchaseValue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user