srp admin controller comments

This commit is contained in:
2019-07-22 21:57:22 -05:00
parent c0506f87f7
commit d58aebf7f6

View File

@@ -419,6 +419,7 @@ class SRPAdminController extends Controller
} }
public function displayCostCodes() { public function displayCostCodes() {
//Declare some variables
$costcodes = array(); $costcodes = array();
$count = 0; $count = 0;
$shipType = SrpShipType::all(); $shipType = SrpShipType::all();
@@ -431,13 +432,14 @@ class SRPAdminController extends Controller
$tempDescription = $ship->description; $tempDescription = $ship->description;
$temp = SrpPayout::where(['code' => $ship->code])->first(); $temp = SrpPayout::where(['code' => $ship->code])->first();
$tempPayout = $temp->payout; $tempPayout = $temp->payout;
//Store the data in a temporary variable
$block = [ $block = [
'code' => $tempCode, 'code' => $tempCode,
'description' => $tempDescription, 'description' => $tempDescription,
'payout' => $tempPayout, 'payout' => $tempPayout,
]; ];
//Push the data into the array
array_push($costcodes, $block); array_push($costcodes, $block);
} }
} }