srp stuff

This commit is contained in:
2019-08-04 02:19:52 -05:00
parent 7f02874923
commit 9099997b2c
2 changed files with 11 additions and 9 deletions

View File

@@ -143,9 +143,11 @@ class TaxesHelper {
public function GetOfficeGross($start, $end) { public function GetOfficeGross($start, $end) {
$revenue = 0.00; $revenue = 0.00;
$revenue = OfficeFeesJournal::where(['ref_type' => 'office_rental_fee', 'second_party_id' => '98287666']) $revenue = OfficeFeesJournal::where([
->whereBetween('date', [$start, $end]) 'ref_type' => 'office_rental_fee',
->sum('amount'); 'second_party_id' => '98287666',
])->whereBetween('date', [$start, $end])
->sum('amount');
return $revenue; return $revenue;
} }

View File

@@ -311,10 +311,10 @@
<th>SRP Actual</th> <th>SRP Actual</th>
</thead> </thead>
<tbody> <tbody>
@foreach($srpActual as $srp) @foreach($srpActual as $actual)
<tr> <tr>
<td>{{ $srp['date'] }}</td> <td>{{ $actual['date'] }}</td>
<td>{{ $srp['gross'] }}</td> <td>{{ $actual['gross'] }}</td>
</tr> </tr>
@endforeach @endforeach
</tbody> </tbody>
@@ -334,10 +334,10 @@
<th>SRP Loss</th> <th>SRP Loss</th>
</thead> </thead>
<tbody> <tbody>
@foreach($srpLoss as $srp) @foreach($srpLoss as $loss)
<tr> <tr>
<td>{{ $srp['date'] }}</td> <td>{{ $loss['date'] }}</td>
<td>{{ $srp['gross'] }}</td> <td>{{ $loss['gross'] }}</td>
</tr> </tr>
@endforeach @endforeach
</tbody> </tbody>