diff --git a/app/Http/Controllers/Contracts/SupplyChainController.php b/app/Http/Controllers/Contracts/SupplyChainController.php index 3cd4d28ee..cabb4f0c5 100644 --- a/app/Http/Controllers/Contracts/SupplyChainController.php +++ b/app/Http/Controllers/Contracts/SupplyChainController.php @@ -314,12 +314,12 @@ class SupplyChainController extends Controller $bid->save(); //Update the database entry for the supply chain contract bid number - $numBids = SupplyChainContract::where([ + $num = SupplyChainContract::where([ 'contract_id' => $request->contract_id, ])->select('bids')->get(); //Increase the number of bids by 1 - $numBids++; + $numBids = $num->bids + 1; //Update the database SupplyChainContract::where([