erio
44cdef7934
fix(usage): subscription billing honours group rate multiplier
...
Subscription-mode billing was consuming quota at TotalCost (raw) instead of
ActualCost (TotalCost * RateMultiplier), so per-group rate multipliers —
including free subscriptions (multiplier = 0) — were silently ignored.
Switch the three subscription cost writes in buildUsageBillingCommand,
finalizePostUsageBilling, and the legacy postUsageBilling fallback to
ActualCost, and add a table-driven test covering 2x / 0.5x / free multipliers
plus a balance-mode regression check.
2026-04-17 22:06:32 +08:00
..
2026-04-14 16:26:46 +08:00
2026-04-14 16:26:46 +08:00
2026-04-15 15:29:52 +08:00
2026-04-15 15:29:52 +08:00
2026-04-15 15:29:52 +08:00
2026-04-15 15:29:52 +08:00
2026-04-14 09:32:11 +08:00
2026-04-14 09:36:26 +08:00
2026-04-14 20:34:53 +08:00
2026-04-15 15:29:52 +08:00
2026-04-14 17:35:27 +08:00
2026-04-14 09:26:32 +08:00
2026-04-14 11:27:32 +08:00
2026-04-14 09:36:40 +08:00
2026-04-14 09:36:26 +08:00
2026-04-14 09:31:45 +08:00
2026-04-14 09:35:20 +08:00
2026-04-14 09:36:40 +08:00
2026-04-14 09:36:40 +08:00
2026-04-17 09:37:25 +08:00
2026-04-14 17:35:27 +08:00
2026-04-14 12:11:08 +08:00
2026-04-14 17:35:27 +08:00
2026-04-14 10:18:39 +08:00
2026-04-14 10:18:39 +08:00
2026-04-14 09:23:02 +08:00
2026-04-14 09:26:08 +08:00
2026-04-17 22:06:32 +08:00
2026-04-17 22:06:32 +08:00
2026-04-14 09:36:40 +08:00
2026-04-14 17:35:27 +08:00
2026-04-16 01:53:22 +08:00
2026-04-14 09:36:40 +08:00
2026-04-14 09:35:20 +08:00
2026-04-16 02:01:50 +00:00
2026-04-15 23:56:56 +08:00
2026-04-14 09:23:02 +08:00
2026-04-16 01:53:22 +08:00
2026-04-14 20:13:59 +08:00
2026-04-14 09:23:02 +08:00
2026-04-15 15:29:52 +08:00
2026-04-14 17:35:27 +08:00
2026-04-14 17:35:27 +08:00
2026-04-14 17:35:27 +08:00
2026-04-15 01:27:24 +08:00
2026-04-14 09:36:26 +08:00
2026-04-14 17:35:27 +08:00
2026-04-14 09:36:26 +08:00
2026-04-17 22:06:32 +08:00
2026-04-15 01:39:00 +08:00
2026-04-15 01:27:24 +08:00
2026-04-15 01:43:56 +08:00
2026-04-15 01:27:24 +08:00
2026-04-15 01:50:19 +08:00
2026-04-17 09:37:25 +08:00
2026-04-14 20:13:59 +08:00
2026-04-17 10:17:50 +08:00
2026-04-16 20:41:40 +08:00
2026-04-14 09:36:26 +08:00
2026-04-14 09:36:26 +08:00
2026-04-14 09:30:51 +08:00
2026-04-14 10:18:39 +08:00
2026-04-16 01:53:22 +08:00
2026-04-16 01:53:22 +08:00
2026-04-14 09:36:26 +08:00
2026-04-14 09:22:12 +08:00
2026-04-14 11:27:32 +08:00
2026-04-14 09:36:26 +08:00
2026-04-14 09:36:26 +08:00
2026-04-14 09:36:40 +08:00
2026-04-14 17:35:27 +08:00
2026-04-14 09:26:08 +08:00