feat(P18B-1,P18B-2): 新增资产流转模型与受控接口
这个提交包含在:
@@ -131,6 +131,16 @@ describe("documentSequence service", () => {
|
||||
expect(issued.documentNumber).toMatch(/^CG-\d{8}-0001$/);
|
||||
});
|
||||
|
||||
it("falls back to inventory check legacy-free config", async () => {
|
||||
const prisma = buildPrisma();
|
||||
|
||||
const config = await resolveDocumentSequenceConfig(prisma, { documentType: "inventory_check" });
|
||||
|
||||
expect(config.source).toBe("fallback");
|
||||
expect(config.prefix).toBe("PD");
|
||||
expect(config.documentCategoryCode).toBeNull();
|
||||
});
|
||||
|
||||
|
||||
it("falls back to default asset category code for asset cards", async () => {
|
||||
const prisma = buildPrisma({
|
||||
|
||||
在新工单中引用
屏蔽一个用户