Commit 22f5277b by 张立顺

docs: include customer goodsOrder cleanup

1 parent 7553a26d
# Remove customer.updatedDate from create-order submissions
# Remove customer audit/order fields from create-order submissions
## Goal
The create-order page must omit `customer.updatedDate` from every order submission request while leaving the page's customer archive data unchanged.
The create-order page must omit `customer.updatedDate` and `customer.goodsOrder` from every order submission request while leaving the page's customer archive data unchanged.
## Design
Add `updatedDate` to the existing `SUBMIT_CUSTOMER_PROPERTIES_TO_DELETE` list in `submitPayload.helpers.js`. `buildSubmitPayload` already deep-clones `orderObj` and removes the listed customer properties at the final request serialization boundary, so the page state and customer profile echo remain untouched.
Add `updatedDate` and `goodsOrder` to the existing `SUBMIT_CUSTOMER_PROPERTIES_TO_DELETE` list in `submitPayload.helpers.js`. `buildSubmitPayload` already deep-clones `orderObj` and removes the listed customer properties at the final request serialization boundary, so the page state and customer profile echo remain untouched.
This applies consistently to normal payment, prerecorded, correction, and supplement submissions because all of them use the same payload builder. Root-level `updatedDate` continues to be removed by the existing root cleanup rule.
## Verification
Extend the submit-payload unit test fixture with `customer.updatedDate` and assert that the generated request omits it while preserving an unrelated customer field. Run the focused unit test, the create-order test suite, and the full work-order verification suite.
Extend the submit-payload unit test fixture with `customer.updatedDate` and `customer.goodsOrder`, then assert that the generated request omits both while preserving an unrelated customer field. Run the focused unit test, the create-order test suite, and the full work-order verification suite.
## Out of scope
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!