This commit is contained in:
weiz 2024-03-18 14:14:35 +08:00
parent c648cb667f
commit 460550be17

View File

@ -21,6 +21,7 @@ use app\common\model\cost_project\CostProject;
use app\common\lists\ListsSearchInterface;
use app\common\model\auth\Admin;
use app\common\model\cost_project\CostProjectPerson;
use app\common\model\ProjectCommission;
use app\common\model\zjzx_finance\ZjzxInvoice;
use app\common\model\zjzx_finance\ZjzxRefund;
@ -75,6 +76,7 @@ class CostProjectLists extends BaseAdminDataLists implements ListsSearchInterfac
$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_refund_amount'] = ZjzxRefund::where('project_id',$item['id'])->sum('amount');
$item['total_pay_amount'] = ProjectCommission::where('project_id',$item['id'])->sum('bczfze');
})
->toArray();
}