Gives operators an explicit order lifecycle: active, settled, archived, deleted. A settled order (cancelled, completed or no-show) can be archived (set aside for retention); an archived order leaves the active list; and delete is gated on archive.
- Adds an
archived timestamp base field on the order, with isArchived/getArchivedTime/setArchived, and OrderManager archiveOrder/unarchiveOrder/isSettled choke points (only settled orders archivable).
- Delete guard: deletable only once the order is archived or cancelled (a void order needs no archive step), plus the existing tenant and no-running-workflow checks. The old cancelled-or-all-past rule is dropped.
- Archive/Unarchive operator actions, per row and in bulk; the orders overview hides archived orders by default with a Show archived filter.
- Honest confirm/cancel messages when nothing changed, instead of a false success.
Kernel tests cover archiving a settled order, the archive-gated delete, direct delete of a cancelled order, and that an active order is neither archivable nor deletable. Docs and French translations are updated.
Comments
Comment #4
mably commented