fixing changes

This commit is contained in:
Ritikesh yadav
2024-05-09 15:42:22 +05:30
parent a6a752ff94
commit d4ba0d1345
6 changed files with 110 additions and 11 deletions

View File

@@ -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;