feat: 补齐报销付款待办交接(09-11-reimbursement-payment-handoffs)
这个提交包含在:
@@ -177,6 +177,7 @@ async function buildApp(options = {}) {
|
||||
},
|
||||
reimbursementForm: {
|
||||
count: vi.fn(async () => 2),
|
||||
findMany: vi.fn(async () => []),
|
||||
},
|
||||
leaveRequest: {
|
||||
count: vi.fn(async () => 1),
|
||||
@@ -192,6 +193,7 @@ async function buildApp(options = {}) {
|
||||
},
|
||||
paymentBatch: {
|
||||
count: vi.fn(async () => options.pendingFinanceBatchCount ?? 0),
|
||||
findMany: vi.fn(async () => []),
|
||||
},
|
||||
paymentBatchItem: {
|
||||
count: vi.fn(async () => options.failedFinanceItemCount ?? 0),
|
||||
@@ -293,6 +295,8 @@ async function buildApp(options = {}) {
|
||||
};
|
||||
|
||||
const app = Fastify();
|
||||
prisma.$executeRawUnsafe = vi.fn(async () => 0);
|
||||
prisma.$transaction = vi.fn(async (work) => work(prisma));
|
||||
app.decorate("prisma", prisma);
|
||||
app.decorate("config", {
|
||||
appTimezone: "Asia/Shanghai",
|
||||
|
||||
在新工单中引用
屏蔽一个用户