Operator guideENlimitsmonthlydetail

Monthly Limits / Detail

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

Reader view

Clean portal guidance

This page keeps the operator explanation, field and action descriptions, and screenshots visible without exposing repo paths, raw sidecars, or editorial-only implementation details.

Narrative content

Page body

What this page does

This detail page edits one existing monthly-limit rule at /monthly-limits/[monthlyLimitId].

Important behavior

Edit mode really persists Is Active

Unlike the create page, the detail page sends isActive through PUT /api/admin/update-monthly-limit, and UpdateMonthlyLimitService writes it to the saved rule.

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, UpdateMonthlyLimitService runs an extra SQL cleanup path intended to remove linked user assignments for that rule.

Verification status

  • status: verified_backend
  • FE edit route verified in EditMonthlyLimitForm
  • backend detail/update routes verified in AdminController.getMonthlyLimitDetail and AdminController.updateMonthlyLimit
Calculation notes

Calculations

calculation

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.
calculation

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.
calculation

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.
calculation

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.
calculation

Inactive-rule cleanup path

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

Inputs
isActive
Transform
`UpdateMonthlyLimitService` runs an extra cleanup query when the saved rule is switched to inactive.
Field dictionary

Fields

field

From Deposit

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

Group
thresholds
Data Type
integer
field

To Deposit

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

Group
thresholds
Data Type
integer
field

Total Deposit Amount (EUR)

Deposit-amount threshold used by the rule.

Group
thresholds
Data Type
number
field

Monthly Limit (EUR)

Cap value stored for the rule.

Group
thresholds
Data Type
number
field

Is Active

Enables or disables the saved rule.

Group
flags
Data Type
boolean
field

Do Not Use Deposit Count

Ignores the deposit-count range when enabled.

Group
flags
Data Type
boolean
field

Do Not Use By Amount

Ignores the deposit-amount threshold when enabled.

Group
flags
Data Type
boolean
Operational notes

Notes

item

FE detail route, edit fields, and save flow are confirmed.

item

`UpdateMonthlyLimitService` persists `isActive` on edit, which is different from the current create service behavior.

item

Saving the rule inactive triggers an extra cleanup query intended to remove linked monthly-limit assignments.

Related references

Related pages

pageMonthly Limits / Form

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

pageMonthly Limits / List

Monthly-limit inventory page for reviewing configured limits and opening saved records.

pageMonthly Limits

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

pageActivity Tag Rules / Detail

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

pageAffiliate Payment Settings / Detail

Saved affiliate payment-setting detail page for reviewing one configured record.

pageAffiliate Settings / Detail

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