srp stuff
This commit is contained in:
@@ -143,9 +143,11 @@ class TaxesHelper {
|
||||
public function GetOfficeGross($start, $end) {
|
||||
$revenue = 0.00;
|
||||
|
||||
$revenue = OfficeFeesJournal::where(['ref_type' => 'office_rental_fee', 'second_party_id' => '98287666'])
|
||||
->whereBetween('date', [$start, $end])
|
||||
->sum('amount');
|
||||
$revenue = OfficeFeesJournal::where([
|
||||
'ref_type' => 'office_rental_fee',
|
||||
'second_party_id' => '98287666',
|
||||
])->whereBetween('date', [$start, $end])
|
||||
->sum('amount');
|
||||
|
||||
return $revenue;
|
||||
}
|
||||
|
||||
@@ -311,10 +311,10 @@
|
||||
<th>SRP Actual</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($srpActual as $srp)
|
||||
@foreach($srpActual as $actual)
|
||||
<tr>
|
||||
<td>{{ $srp['date'] }}</td>
|
||||
<td>{{ $srp['gross'] }}</td>
|
||||
<td>{{ $actual['date'] }}</td>
|
||||
<td>{{ $actual['gross'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
@@ -334,10 +334,10 @@
|
||||
<th>SRP Loss</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($srpLoss as $srp)
|
||||
@foreach($srpLoss as $loss)
|
||||
<tr>
|
||||
<td>{{ $srp['date'] }}</td>
|
||||
<td>{{ $srp['gross'] }}</td>
|
||||
<td>{{ $loss['date'] }}</td>
|
||||
<td>{{ $loss['gross'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user