jump bridge helper

This commit is contained in:
2020-03-11 00:23:43 -05:00
parent c5c4b7af5d
commit ee2160fa8a
5 changed files with 449 additions and 24 deletions
+22
View File
@@ -17,6 +17,28 @@ class SRPHelper {
//
}
public function GetAllianceSRPActual($start, $end) {
$actual = 0.00;
$actual = SRPShip::where([
'approved' => 'Approved',
])->whereBetween('created_at', [$start, $end])
->sum('paid_value');
return $actual;
}
public function GetAllianceSRPLoss($start, $end) {
$loss = 0.00;
$loss = SRPShip::where([
'approved' => 'Approved',
])->whereBetween('created_at', [$start, $end])
->sum('loss_value');
return $loss;
}
public function GetLossesByFC($start, $end) {
$losses = array();
$fcs = null;