supply chain controller
This commit is contained in:
@@ -316,9 +316,9 @@ class SupplyChainController extends Controller
|
||||
//Update the database entry for the supply chain contract bid number
|
||||
$num = SupplyChainContract::where([
|
||||
'contract_id' => $request->contract_id,
|
||||
])->select('bids')->get();
|
||||
])->select('bids')->first();
|
||||
|
||||
dd($num);
|
||||
$numBids = $num->bid + 1;
|
||||
|
||||
//Update the database
|
||||
SupplyChainContract::where([
|
||||
@@ -353,11 +353,6 @@ class SupplyChainController extends Controller
|
||||
'bid_id' => $bidId,
|
||||
])->delete();
|
||||
|
||||
//Remove 1 from the supply chain contract total bids
|
||||
$contractBids = SupplyChainContract::where([
|
||||
|
||||
]);
|
||||
|
||||
return redirect('/supplychain/dashboard')->with('success', 'Deleted supply chain contract bid.');
|
||||
} else {
|
||||
return redirect('/supplychain/dashboard')->with('error', 'No bid found to delete.');
|
||||
|
||||
Reference in New Issue
Block a user