fix: 拦截已删除报销进入付款创建(09-04-reimbursement-state-gap-finance-view)
这个提交包含在:
@@ -546,7 +546,7 @@ function buildPayeeSnapshot(config, owner, options = {}) {
|
||||
async function loadEntitySnapshots(tx, entityType, entityIds, config, options = {}) {
|
||||
if (entityType === "reimbursement") {
|
||||
const items = await tx.reimbursementForm.findMany({
|
||||
where: { id: { in: entityIds } },
|
||||
where: { id: { in: entityIds }, deleted_at: null },
|
||||
select: {
|
||||
id: true,
|
||||
form_number: true,
|
||||
@@ -1435,6 +1435,7 @@ async function paymentBatchesRoutes(fastify) {
|
||||
const where = {
|
||||
status: "approved",
|
||||
paid_at: null,
|
||||
deleted_at: null,
|
||||
...(q
|
||||
? {
|
||||
OR: [
|
||||
|
||||
在新工单中引用
屏蔽一个用户