freshyo/docs/test-cases/order-edits-rebalance.md
2026-10-17 12:07:20 +05:30

2.7 KiB

Order notes, delivery-charge removal and rebalance

Scope: customer updateUserNotes, admin notes/removeDeliveryCharge/rebalanceSlots. Explicit rebalance changes item pricing while preserving charged discount and historic delivery fee.

ID Priority Action / input Expected result
EDIT-01 P1 Customer edits pending order instructions. Latest notes persist/customer-admin agree; internal notes not overwritten.
EDIT-02 P1 Admin annotates pending or delivered order. Supported admin notes saved; customer notes distinguishable.
EDIT-03 P0 Customer edits delivered/cancelled order or U2 order. Refused; no history/ownership bypass.
EDIT-04 P1 Empty/Unicode/long/markup instructions. Approved clearing/limits; safely rendered as text.
EDIT-05 P0 Remove delivery fee from authorized paid-fee COD order. Stored fee and payable updated together exactly once.
EDIT-06 P1 Remove already-zero fee or repeat request. No negative total or duplicate discount; clear idempotent/conflict behavior.
EDIT-07 P0 Remove fee from another region's order. No unauthorized amount change.
EDIT-08 P1 Remove fee on one split sibling. Only assigned fee affected; sibling totals/coupon shares unchanged.
EDIT-09 P0 Catalog price changes without explicit rebalance. Historic item prices/order amount unchanged.
EDIT-10 P0 Rebalance selected active slot with modified prices. Item prices update; historic fee and stored discount frozen; every total reconciles.
EDIT-11 P0 Rebalance multiple slots/mixed regions. Only authorized slots/orders repriced; foreign IDs denied without partial writes.
EDIT-12 P0 Delivered/cancelled orders in rebalance slot. Skipped per policy; no historical paid amount rewrite.
EDIT-13 P1 Target SKU deleted/missing/current price invalid. Clear skip/failure policy; no zero-price historical corruption.
EDIT-14 P0 Lower new goods below historic discount. No negative payable; explicitly approved adjustment/block policy (BLOCKED until defined).
EDIT-15 P1 Repeat rebalance, concurrent catalog edit and cancellation. Coherent snapshot/legal state, no duplicate deductions or mixed prices.
EDIT-16 P1 Error halfway through rebalance/remove fee. Defined atomic outcome; no partial unreported amount changes.
EDIT-17 P1 Decimal prices/caps after rebalance. Agreed rounding; sum/detail use stored discount, never recomputed coupon.
EDIT-18 P2 Notes/rebalance confirmation cancel and reopen detail. No unsaved action; clear affected scope and refreshed result.

Order edits are COD-only (no online payment, no refunds). Avoid rebalancing shared production-like fixtures.