更新报销模块
This commit is contained in:
parent
d706fafaaa
commit
9d6d42f5c9
@ -182,6 +182,10 @@ class ExpenseReimbursementLogic extends BaseLogic
|
||||
*/
|
||||
public static function detail($params): array
|
||||
{
|
||||
return ExpenseReimbursement::findOrEmpty($params['id'])->toArray();
|
||||
$expenseReimbursement = ExpenseReimbursement::findOrEmpty($params['id']);
|
||||
$expenseReimbursement->detail;
|
||||
$expenseReimbursement->invoice;
|
||||
$expenseReimbursement->custom;
|
||||
return $expenseReimbursement->toArray();
|
||||
}
|
||||
}
|
@ -53,4 +53,9 @@ class ExpenseReimbursement extends BaseModel
|
||||
return $this->hasMany(\app\common\model\expense\ExpenseReimbursementInvoiceDetail::class, 'expense_id', 'id');
|
||||
}
|
||||
|
||||
public function custom()
|
||||
{
|
||||
return $this->belongsTo(\app\common\model\custom\Custom::class, 'customer_id');
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user