supply chain controller

This commit is contained in:
2020-08-07 13:50:16 -05:00
parent 0f108a709c
commit bb84b15f3b

View File

@@ -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([