This commit is contained in:
weiz 2024-03-28 17:13:53 +08:00
parent ccaa5821a4
commit 44e6202980

View File

@ -164,7 +164,7 @@
*/
public static function delete(array $params): bool
{
$detail = FinancialTravelReimbursementDetail::where('expense_reimbursement_id', 'in', $params['id'])->findOrEmpty();
$detail = FinancialTravelReimbursementDetail::where('travel_reimbursement_id', 'in', $params['id'])->findOrEmpty();
if (!$detail->isEmpty()) {
self::setError('此数据关联了报销明细信息,需删除报销明细信息');
return false;