-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Description
There is a critical issue in how costs are allocated for users with a custom Chart of Accounts (COA) string. When a user chats under a specific COA account, the cost of the interaction is incorrectly recorded in both the user's custom COA account and the user's general account.
Furthermore, the cost that is added to the general account does not match the cost attributed to the custom COA string, creating a billing discrepancy.
Steps to Reproduce
- A user selects a custom COA string as the default account for their session.
- The user initiates a chat that incurs a measurable cost.
- The cost allocation data is reviewed.
- Observe that the cost has been added to both the specific COA string's total and the general account's total.
Behavior
The cost of the chat is reflected in two separate places: the custom COA account and the general account. The amounts added to each account are unequal, which leads to inaccurate and inflated cost reporting.
Impact
This bug causes significant confusion for billing and makes it impossible to accurately charge back costs to other groups and departments. It undermines the reliability of the platform's cost allocation feature and requires manual intervention to resolve billing disputes.