jump bridge helper
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user