srp stuff
This commit is contained in:
@@ -143,8 +143,10 @@ 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',
|
||||||
|
'second_party_id' => '98287666',
|
||||||
|
])->whereBetween('date', [$start, $end])
|
||||||
->sum('amount');
|
->sum('amount');
|
||||||
|
|
||||||
return $revenue;
|
return $revenue;
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user