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 15:18:29 +08:00
父节点 7bfc25461f
当前提交 752ec41396
共修改 6 个文件,包含 28 行新增和 11 行删除
+1 -1
查看文件
@@ -156,7 +156,7 @@ function buildPaymentOrderRows(config, batch) {
serial,
Number(amount.toFixed(2)),
"报销款",
entityCode,
`报销款 ${entityCode}`,
"0",
"",
"",
@@ -43,7 +43,7 @@ function buildBatch(overrides = {}) {
}
describe("payment order BIFF8 generator", () => {
it("keeps document-only remarks and separate transfers for the same frozen payee account", () => {
it("keeps reimbursement-purpose remarks and separate transfers for the same frozen payee account", () => {
const batch = buildBatch();
for (const item of batch.items) {
item.snapshot_json.payee.name = " 合成收款人 ";
@@ -53,8 +53,8 @@ describe("payment order BIFF8 generator", () => {
}
const result = buildPaymentOrderRows(config, batch);
expect(result.rows.map((row) => row.slice(10, 12))).toEqual([
["报销款", "BX-20260802-0001"],
["报销款", "BX-20260802-0002"],
["报销款", "报销款 BX-20260802-0001"],
["报销款", "报销款 BX-20260802-0002"],
]);
expect(result.rows.map((row) => row[5])).toEqual(["合成收款人", "合成收款人"]);
expect(result.rows[0][4]).toBe(result.rows[1][4]);
@@ -72,7 +72,7 @@ describe("payment order BIFF8 generator", () => {
batch.items[0].entity_code = ` ${code} `;
const row = buildPaymentOrderRows(config, batch).rows[0];
expect(row[5]).toBe(name);
expect(row[11]).toBe(code);
expect(row[11]).toBe(`报销款 ${code}`);
});
it.each([
@@ -126,10 +126,10 @@ describe("payment order BIFF8 generator", () => {
expect(parsed.rows).toHaveLength(2);
expect(parsed.rows[0]).toEqual([
"1", payerAccount, "合成测试公司", "01", payeeAccount, "甲", "中国建设银行", "",
"PB-20260802-002-R001", 1.2, "报销款", "BX-20260802-0001", "0", "", "",
"PB-20260802-002-R001", 1.2, "报销款", "报销款 BX-20260802-0001", "0", "", "",
]);
expect(parsed.rows[1][9]).toBe(2);
expect(parsed.rows[1].slice(10, 12)).toEqual(["报销款", "BX-20260802-0002"]);
expect(parsed.rows[1].slice(10, 12)).toEqual(["报销款", "报销款 BX-20260802-0002"]);
});
it("fails the whole export and reports every blocking payee issue", () => {