Skip to content

feat(sales): show the contract form framework as Multi-Order Contract (#2916) - #2927

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-2916-multi-order-contract-name
Dec 2, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-2916-multi-order-contract-name

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Irene · project thread

Fixes #2916

Clause-②: no
Metadata-protocol: none
Metadata-impact: reviewer

维护者速读

  • 销售和管理员新建合同时,「合同形式」里原来的「框架合同」现在叫「多订单合同」,下面的说明写明「一份合同下可挂多张订单,合同金额为上限」;英文、日文、西班牙文同步改名,帮助文档也一起改。
  • 属于「合同形式」这组合同改造,替维护者解决「框架合同」让人以为只能用于框架协议、该用时不敢用的问题。
  • 只改显示文字,已有合同、导入导出和接口里存的值都不变,也不用迁移数据;有问题直接撤回这次改动即可。
  • 无。

What changes

The contract form option stored as framework is now shown as Multi-Order Contract (zh-CN 「多订单合同」, ja-JP 「複数受注契約」, es-ES "Contrato Multipedido"); the English rename follows the maintainer's ruling recorded on the card (comment 7340546047). Display text only: the option value, API names and stored rows stay, nothing is migrated.

  • Contract Form option label and help in all four locale packs, and the object's source label and description.
  • The help under the picker now carries the option description the card asks for (zh-CN 「一份合同下可挂多张订单,合同金额为上限」). It is in the field help, not on the option: on 19.0.0-next.3 the form's picker does not render an option description, and a locale pack cannot translate one (its options maps a value to a label only), so an option description would have shown English in every locale, or nowhere. The reason sits in a comment on the option.
  • The refusal that names the choosable forms ("Choose Multi-Order Contract or Other.") in the English source and the zh-CN, ja-JP, es-ES packs.
  • The order quota warnings in the zh-CN, ja-JP and es-ES packs.
  • In-app manuals (contracts, orders, collection plan; English and zh) and the product docs' contracts, orders and order-to-cash pages (en, zh-Hans, zh-Hant). The English headings keep their old anchors (#framework-contract-quota, #the-contract-form-order-framework-or-other) explicitly, so the zh pages that use them and any saved link still land.

Two places still say "framework contract", by design of this PR's scope:

Tests

test/contract-form-multi-order-name.test.ts pins the business fact: value framework still the default, the four pack labels and help, the zh-CN description, the renamed refusal, and no 「框架合同」 left in the zh-CN pack or the zh in-app manuals. With src/ and content/ reverted to origin/main, all 11 cases go red; restored, 11 pass.

Acceptance notes

  • The picker itself shows the new name in zh-CN and en (browser check below); the description shows as the field help directly under it.

Verification

Two-minute check: boot the app, open Contracts, New. The Contract Form picker reads 「多订单合同」 / "Multi-Order Contract", and the grey help under it reads 「……多订单合同:一份合同下可挂多张订单,合同金额为上限,手工填写……」.

Files to read first: src/sales/objects/contract.object.ts (the option and its comment), src/sales/translations/zh-CN/objects.commerce.ts, content/docs/(product)/sales/contracts.mdx (anchors kept).

Local gates on cf9ffb4
  • pnpm validate exit 0, pnpm typecheck exit 0, pnpm lint (os lint --strict) exit 0, pnpm hygiene exit 0 ("source hygiene clean").
  • Full suite run locally as vitest run --shard=N/12 through the shared verify lock (a sixth no longer fits one call on the shared box); per-shard readings are in the dev report. CI's test job on this head is the verdict.
  • Browser: booted objectstack dev, New Contract in zh-CN and en; picker options read 「多订单合同 / 其他」 and "Multi-Order Contract / Other", help under the picker carries the description.

🤖 Generated with Claude Code

https://claude.ai/code/session_01J8VVAk8tegvAi1ECkgCFfc

…#2916)

Display text only: the option value framework, API names and stored rows
stay. Labels, help, quota warnings and the form refusal in en, zh-CN,
ja-JP and es-ES; the in-app manuals and the product docs follow. The
option's description rides in the field help, which the form shows under
the picker and every locale pack can translate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J8VVAk8tegvAi1ECkgCFfc
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
hotcrm Ignored Ignored Dec 2, 2026 11:33am UTC

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation ci/cd CI plumbing and the verification pipeline metadata Declarative metadata — schema, security posture, UI surfaces backend Server-side behaviour — hooks, flows, actions labels Dec 2, 2026
@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 2, 2026 11:34
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:hotcrm#1 · huangyiirene · session_01J8VVAk8tegvAi1ECkgCFfc

ACCEPT · 2026-12-02T11:35Z

Head-sha: d08ff197

维护者速读

  • 改了什么:合同形式「框架合同」改名为「多订单合同」(英文 Multi-Order Contract,日文 複数受注契約,西文 Contrato Multipedido)。存储值仍是 framework,已有数据和接口不变,无需迁移。字段说明、保存拒绝提示、超额警告、An order may link only an Activated multi-order contract of the same account (checked when a person changes the field; system writes exempt) #2917 新加的「只能关联已激活的多订单合同」提示,以及应用内手册和产品文档都已同步。
  • 没做到的:选项本身不能挂说明文字(平台的选择框不显示、也不能翻译选项说明),所以「一份合同下可挂多张订单,合同金额为上限」写在字段说明里,就显示在选择框正下方。7.0.x 的更新记录保留旧名。
  • 要你做什么:无。按您「派吧」与「做完的,没有问题的都自动合并」,席位合并。

席位核对

@objectstack-fleet
objectstack-fleet Bot enabled auto-merge December 2, 2026 11:35
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 79ff34c Dec 2, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Server-side behaviour — hooks, flows, actions ci/cd CI plumbing and the verification pipeline documentation Improvements or additions to documentation metadata Declarative metadata — schema, security posture, UI surfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename the "Framework Contract" form to "Multi-Order Contract" (display name only; value framework unchanged)

2 participants