BIZ8-8 增强财务台账项目扫读
这个提交包含在:
@@ -0,0 +1,22 @@
|
||||
const {
|
||||
FINANCE_LEDGER_EXPORT_HEADERS,
|
||||
buildFinanceLedgerWhere,
|
||||
} = require("../../../src/services/financeLedger");
|
||||
|
||||
describe("finance ledger service", () => {
|
||||
it("includes project fields in keyword search and export headers", () => {
|
||||
const where = buildFinanceLedgerWhere({ q: "交付项目" });
|
||||
|
||||
expect(where).toEqual({
|
||||
AND: [
|
||||
{
|
||||
OR: expect.arrayContaining([
|
||||
{ project: { is: { project_no: { contains: "交付项目", mode: "insensitive" } } } },
|
||||
{ project: { is: { name: { contains: "交付项目", mode: "insensitive" } } } },
|
||||
]),
|
||||
},
|
||||
],
|
||||
});
|
||||
expect(FINANCE_LEDGER_EXPORT_HEADERS).toContain("项目");
|
||||
});
|
||||
});
|
||||
在新工单中引用
屏蔽一个用户