Repository navigation
feat(sales): show the contract form framework as Multi-Order Contract (#2916) - #2927
Merged
objectstack-fleet[bot] merged 4 commits intoDec 2, 2026
Merged
Conversation
…#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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAk8tegvAi1ECkgCFfc
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAk8tegvAi1ECkgCFfc
…name Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAk8tegvAi1ECkgCFfc
Contributor
Author
|
repo:hotcrm#1 · huangyiirene · session_01J8VVAk8tegvAi1ECkgCFfc ACCEPT · 2026-12-02T11:35ZHead-sha: 维护者速读
席位核对
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Irene · project thread
Fixes #2916
Clause-②: no
Metadata-protocol: none
Metadata-impact: reviewer
维护者速读
What changes
The contract form option stored as
frameworkis 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.description, and a locale pack cannot translate one (itsoptionsmaps 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.#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:
src/sales/objects/sales_order.object.ts, which the claim for 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 holds. They stay lowercase "framework contract" here; the other three locales are renamed.content/docs/(start)/whats-new*.mdxdescribes what 7.0.x shipped under the old name; it is a release record outside the claimed surface and is left as written.Tests
test/contract-form-multi-order-name.test.tspins the business fact: valueframeworkstill 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. Withsrc/andcontent/reverted toorigin/main, all 11 cases go red; restored, 11 pass.Acceptance notes
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 validateexit 0,pnpm typecheckexit 0,pnpm lint(os lint --strict) exit 0,pnpm hygieneexit 0 ("source hygiene clean").vitest run --shard=N/12through 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.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