This commit is contained in:
weiz 2024-03-18 14:18:12 +08:00
parent 1f06d1486e
commit 000eb51cb1

View File

@ -88,6 +88,7 @@ class CostProjectLists extends BaseAdminDataLists implements ListsSearchInterfac
$item['contract']['contract_type_text'] = $item['contract']->contract_type_text; $item['contract']['contract_type_text'] = $item['contract']->contract_type_text;
$item['total_invoice_amount'] = ZjzxInvoice::where('project_id',$item['id'])->sum('apply_amount'); $item['total_invoice_amount'] = ZjzxInvoice::where('project_id',$item['id'])->sum('apply_amount');
$item['total_refund_amount'] = ZjzxRefund::where('project_id',$item['id'])->sum('amount'); $item['total_refund_amount'] = ZjzxRefund::where('project_id',$item['id'])->sum('amount');
$item['total_pay_amount'] = ProjectCommission::where('project_id',$item['id'])->sum('bczfze');
}) })
->toArray(); ->toArray();