Carry a rule across releases
A refund processed today can still belong to last month’s order. This worked example uses an order date to preserve the terms in force at purchase.
For orders placed before 2026-12-01, refunds over $500 require manager approval. For orders placed on or after 2026-12-01, refunds do not require manager approval.One refund, two order dates
Two customers each request $510 back on December 3. Their order dates select different parts of the rule.
| Order placed | Refund | Decision |
|---|---|---|
| Nov 30 | $510.00 | Manager approval |
| Dec 1 | $510.00 | No approval |
What survives release two
The order date still matters after the waiver goes live. To establish what happened to a particular order, a teammate also needs the actual order record and the version that governed it.
The same case in SQL
SELECT placed_on < DATE '2026-12-01'
AND refund_cents > 50000 AS needs_manager
FROM refund_requests;SQL can express effective dates and store a full version history. This query gives the same answers for the two orders. The policy wording and SQL here illustrate an effective date. To use the public CLI, supply the relevant edition and supported facts.
SQL reference