Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebalance #350

Merged
merged 6 commits into from
Dec 6, 2024
Merged

Rebalance #350

merged 6 commits into from
Dec 6, 2024

Conversation

aaronk
Copy link

@aaronk aaronk commented Dec 6, 2024

Various updates in support of rebalancing (modification of account distribution during end of month review)

  • Add the user argument to billing calculator functions, even though it won't be used, because it's in the base class now.
  • ColdfrontRebalance subclass that removes all the billing records of the user's organization and recalculates to ensure that things like faculty commitments are properly applied.
  • Update calculate_billing_month view to process a single organization
  • Use Resultinator.get_other_errors_by_organization() to return all the "Other" errors to fiine during the rebalancing process.
  • Excludes things like 0Tb usage, but includes splits that don't add to 100, code errors, etc.

…be used to limit billing calculations

ColdfrontRebalance class that will remove the user organization and recalculate the whole org so that things like offer letters can be properly accounted for
Fix calculate billing month url to be consistent with other applications
Set default email
…ory excludes "normal" errors like 0Tb usage and gives the rebalancing code in fiine errors that actually need to be addressed

Update ifxbilling so that the calculate billing month body is properly set to include the user_ifxorg field
…nal state are protected

Calculate billing month url needs invoice prefix in it so that rebalance can use a standard form
@aaronk aaronk merged commit 8be3100 into master Dec 6, 2024
1 check passed
@aaronk aaronk deleted the ajk_rebalance branch December 6, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant