fix: 退回报销支持留痕删除(09-04-reimbursement-state-gap-finance-view)
这个提交包含在:
@@ -38,7 +38,7 @@ function dateRange(dateFrom, dateTo) {
|
||||
}
|
||||
|
||||
function buildFinanceLedgerWhere(filters = {}) {
|
||||
const clauses = [];
|
||||
const clauses = [{ deleted_at: null }];
|
||||
const query = filters.q?.trim();
|
||||
|
||||
if (filters.status) {
|
||||
|
||||
@@ -47,11 +47,11 @@ function buildReadableReimbursementWhere({ employee, scope = "all", filters = {}
|
||||
: buildViewAllReimbursementScopeWhere(employee);
|
||||
|
||||
if (scope === "own") {
|
||||
return { AND: [scopeWhere, filters] };
|
||||
return { AND: [scopeWhere, filters, { deleted_at: null }] };
|
||||
}
|
||||
|
||||
return {
|
||||
AND: [scopeWhere, buildReimbursementBusinessFactWhere(employee.id), filters],
|
||||
AND: [scopeWhere, buildReimbursementBusinessFactWhere(employee.id), filters, { deleted_at: null }],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户