This commit is contained in:
weiz 2024-01-12 10:43:01 +08:00
parent b8faf0954e
commit a0453d3251

View File

@ -19,6 +19,7 @@ use app\adminapi\lists\BaseAdminDataLists;
use app\common\model\auth\Admin;
use app\common\model\contract\Contract;
use app\common\model\finance\FinanceReturnedMoney;
use app\common\model\finance\FinanceReturnedRecord;
use app\common\model\project\Project;
use app\common\model\custom\Custom;
use app\common\lists\ListsSearchInterface;
@ -83,7 +84,7 @@ class FinanceReturnedMoneyLists extends BaseAdminDataLists implements ListsSearc
$data['period'] = $data->period_text;
$data['return_status'] = $data->return_status_text;
$data['return_duty'] = $return_duty['name'];
$data['has_return_amount'] = 0;
$data['has_return_amount'] = FinanceReturnedRecord::where('finance_returned_money_id',$data['id'])->sum('amount');
$data['not_return_amount'] = $data['amount'] - $data['has_return_amount'];
return $data;
})