Operator guideEN

Monthly Limits / Detail

Saved monthly-limit edit workspace for one rule, including persisted active state and gate logic.

How to use this guide

Start with the main guide

Follow the explanation and examples first. Extra definitions and formulas are available below when you need them.

What this page does

This detail page edits one existing monthly-limit rule. Operators use it to change thresholds, matching flags, and the saved active status for a rule that already exists.

Loading behavior

The page loads the selected rule by the route ID before the form is shown. While the record is loading, the page shows a circular progress indicator. If the backend does not return a detail record, the verified page keeps the loading/progress state rather than showing a dedicated not-found message.

Important behavior

Edit mode really persists Is Active

Unlike the create page, the detail page saves Is Active as part of the update. Use this page or the list status toggle when the stored active/disabled state must be changed.

The same Do Not Use logic stays active in edit mode

  • both switches off: count and amount both apply
  • Do Not Use By Amount: count-only rule
  • Do Not Use Deposit Count: amount-only rule
  • both on: FE guidance treats the rule as universal

Deactivation triggers backend cleanup logic

When a rule is saved inactive, the backend attempts an extra cleanup path for linked user assignments. The verified cleanup query is narrow and should not be treated as a guarantee that every linked user assignment for the limit is removed. If assignment cleanup matters operationally, verify user assignments after disabling a rule.

Validation and save flow

  • The edit form pre-fills values from the saved rule.
  • The verified edit form does not define a frontend validation schema.
  • The backend requires the rule ID, all threshold values, Is Active, and the two Do Not Use flags.
  • Save is disabled while the frontend submit state is active.
  • On success, the page shows a success toast and returns through browser history.
  • On failure, the page shows a generic failure toast and stays on the form.
  • Cancel returns through browser history without submitting unsaved edits.
  • The backend detail and update actions are authenticated. The update action is audit-tracked, but the separate permission middleware is commented out in the verified route.
More details

Definitions and formulas

Open only the section you need. The relevant section opens automatically when you request help for a specific item on screen.

Calculations9 topicsOpen details

Detail load

The edit form represents one saved monthly-limit row.

Inputs
monthlyLimitId
Transform
The page reads the route ID, requests that monthly-limit detail, and renders the form only after a detail record is available.
Caveats
The verified page shows a progress indicator while loading or when no detail record is available.

Detail initial state

The editable values shown at page load are the current saved values for the selected rule.

Inputs
limit detail response
Transform
Form values are initialized from the loaded saved rule and reinitialized when the detail data changes.

Required update validation

A trusted save requires a complete update payload.

Inputs
limitId, fromDeposit, toDeposit, totalDepositAmount, monthlyLimit, isActive, doNotUseDepositCount, doNotUseByAmount
Transform
Backend requires the selected rule ID, all threshold and limit values, active state, and the two `Do Not Use` flags.
Caveats
The verified edit form does not define a frontend validation schema., The verified update flow does not add range, overlap, non-negative, ordering, or positive-limit validation.

Both conditions active

This is the strictest matching setup in the edit workspace.

Inputs
fromDeposit, toDeposit, totalDepositAmount, doNotUseDepositCount, doNotUseByAmount
Transform
When both checkboxes are off, the saved rule uses both the deposit-count range and the deposit-amount threshold.

Count-only rule

The rule depends only on deposit count.

Inputs
fromDeposit, toDeposit, doNotUseByAmount
Transform
Enabling `Do Not Use By Amount` removes the amount condition from the saved rule.

Amount-only rule

The rule depends only on deposit amount.

Inputs
totalDepositAmount, doNotUseDepositCount
Transform
Enabling `Do Not Use Deposit Count` removes the count-range condition from the saved rule.

Universal rule

The rule is no longer limited by either deposit-history condition.

Inputs
doNotUseDepositCount, doNotUseByAmount
Transform
Enabling both checkboxes makes the saved rule apply universally in FE guidance.

Inactive-rule cleanup path

Turning the rule off also triggers backend assignment-cleanup behavior.

Inputs
isActive
Transform
The backend runs an extra cleanup query when the saved rule is switched to inactive.
Caveats
The verified cleanup path matches assignment data narrowly and should not be treated as proof that every linked user assignment for the limit is removed., Verify user assignments separately if assignment cleanup is operationally important.

Submit success flow

A successful save returns the operator to the previous page rather than keeping the detail form open.

Inputs
update response
Transform
On success, frontend shows a success toast, clears submitting state, and navigates back through browser history.
Fields11 topicsOpen details

Progress indicator

Shown while the selected monthly-limit rule is loading or while no detail record is available.

Group
state
Data Type
state

Edit Limit

Identifies the saved monthly-limit edit workspace.

Group
header
Data Type
text

From Deposit

Lower bound of the deposit-count range used by the rule.

Group
thresholds
Data Type
integer
Validation
Required by backend update validation.
Caveats
The verified edit form does not define a frontend validation schema.

To Deposit

Upper bound of the deposit-count range used by the rule.

Group
thresholds
Data Type
integer
Validation
Required by backend update validation.
Caveats
The verified update flow does not add a greater-than/equal-to `From Deposit` rule.

Total Deposit Amount (EUR)

Deposit-amount threshold used by the rule.

Group
thresholds
Data Type
number
Validation
Required by backend update validation.

Monthly Limit (EUR)

Cap value stored for the rule.

Group
thresholds
Data Type
number
Validation
Required by backend update validation.

Is Active

Enables or disables the saved rule.

Group
flags
Data Type
boolean
Validation
Required by backend update validation.
Caveats
Saving inactive triggers backend assignment-cleanup behavior, but the verified cleanup path should not be treated as a guarantee that every linked assignment is removed.

Do Not Use Deposit Count

Ignores the deposit-count range when enabled.

Group
flags
Data Type
boolean
Validation
Backend validates this flag as boolean.

Do Not Use By Amount

Ignores the deposit-amount threshold when enabled.

Group
flags
Data Type
boolean
Validation
Backend validates this flag as boolean.

Save

Saves the current edit draft to the selected monthly-limit rule.

Group
actions
Data Type
action
Caveats
The button is disabled while the frontend submit state is active.

Cancel

Leaves the edit form through browser history without saving unsaved edits.

Group
actions
Data Type
action
More help

Related pages

Monthly Limits / Form

Create workspace for monthly-limit rules, including deposit-count and amount gates plus create-time backend caveats.

Monthly Limits / List

Monthly-limit inventory page for reviewing configured limits, opening saved records, and toggling active status.

Monthly Limits

Operator guide for monthly-limit inventory, create flow, and edit workspace.

Activity Tag Rules / Detail

Rule inspection page with stored identity, conditions, timestamps, impact estimate, run action, delete action, and recent application history.

Affiliate Payment Settings / Detail

Detail/edit shell for one saved affiliate payment-setting record.

Affiliate Settings / Detail

Saved affiliate detail workspace for reviewing one affiliate and opening report actions.