supply chain controller
This commit is contained in:
@@ -314,12 +314,12 @@ class SupplyChainController extends Controller
|
|||||||
$bid->save();
|
$bid->save();
|
||||||
|
|
||||||
//Update the database entry for the supply chain contract bid number
|
//Update the database entry for the supply chain contract bid number
|
||||||
$numBids = SupplyChainContract::where([
|
$num = SupplyChainContract::where([
|
||||||
'contract_id' => $request->contract_id,
|
'contract_id' => $request->contract_id,
|
||||||
])->select('bids')->get();
|
])->select('bids')->get();
|
||||||
|
|
||||||
//Increase the number of bids by 1
|
//Increase the number of bids by 1
|
||||||
$numBids++;
|
$numBids = $num->bids + 1;
|
||||||
|
|
||||||
//Update the database
|
//Update the database
|
||||||
SupplyChainContract::where([
|
SupplyChainContract::where([
|
||||||
|
|||||||
Reference in New Issue
Block a user