Campaigns: archive a finished one, get the credits back, keep the numbers

A member asked for a delete button. Deleting would orphan the credit ledger,
the hourly view rows and the P&L, and throw away the figures they actually
want, so a campaign is archived instead: out of the working table, listed in
full underneath with its views, clicks and spend, and restorable.

The credits are the real point. Reserved budget is computed from campaigns
that are active or paused, so a paused campaign quietly holds credits the
member cannot spend anywhere else. Archiving releases them the moment the
status changes, with nothing to refund and nothing that can double-refund.

Only a paused or finished campaign can be archived, so pause stays the
deliberate first step, and restoring brings it back paused rather than live.
The syndication rails are stopped on the way in.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-23 08:40:17 -05:00
parent 891eac1626
commit f0a6a93f8b
4 changed files with 56 additions and 5 deletions
+1 -1
View File
@@ -1073,7 +1073,7 @@
<script src="/assets/common.js?v=20260923b"></script>
<script src="/assets/wallet.js?v=20260911a"></script>
<script src="/assets/promo.js?v=20260921d"></script>
<script src="/assets/my.js?v=20260922v"></script>
<script src="/assets/my.js?v=20260923c"></script>
<script src="/assets/chat.js?v=20260907l"></script>
</body>
</html>