|
@@ -1239,7 +1239,7 @@ WHERE claim_line.cpt = '99458' AND
|
|
|
}
|
|
|
|
|
|
// calculate totals (without pagination)
|
|
|
- $fPros = Pro::whereNotNull('balance')->where('balance', '>', 0)->get();
|
|
|
+ $fPros = Pro::whereNotNull('balance')->with('companyPros')->where('balance', '>', 0)->get();
|
|
|
$grandTotal = 0;
|
|
|
$companies = [];
|
|
|
foreach ($fPros as $row) {
|
|
@@ -1255,7 +1255,7 @@ WHERE claim_line.cpt = '99458' AND
|
|
|
}
|
|
|
arsort($companies);
|
|
|
|
|
|
- $fPros = Pro::whereNotNull('balance');
|
|
|
+ $fPros = Pro::whereNotNull('balance')->with('companyPros', 'debitBills');
|
|
|
if($targetPro) {
|
|
|
$fPros = $fPros->where('uid', $targetPro->uid);
|
|
|
}
|