fix: 拦截已删除报销进入付款创建(09-04-reimbursement-state-gap-finance-view)
ci-e2e / e2e (push) Canceled after 0s
ci-minimal / check-minimal (push) Canceled after 0s

这个提交包含在:
2026-09-12 16:00:25 +08:00
父节点 752ec41396
当前提交 31ab9fbb2b
共修改 5 个文件,包含 61 行新增和 7 行删除
+2 -1
查看文件
@@ -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: [