enforce windowed usage cap in V2 deduction lua

This commit is contained in:
Owen Greenhalgh
2026-06-02 19:21:38 +01:00
parent 8eab888024
commit 2b63e7de1a
15 changed files with 678 additions and 28 deletions

View File

@@ -274,6 +274,11 @@ local function run_deduction_on_context(params)
update.adjustment = ent_data.adjustment or 0
update.additional_balance = 0
if ent_data.subject_balance
and type(ent_data.subject_balance.usage_windows) == 'table' then
update.usage_windows = ent_data.subject_balance.usage_windows
end
end
end