Skip to content

fix: re-derive DN status on consolidated-SI billing revert#26

Merged
sayanthns merged 1 commit into
mainfrom
fix/dn-billing-revert-status
Jun 26, 2026
Merged

fix: re-derive DN status on consolidated-SI billing revert#26
sayanthns merged 1 commit into
mainfrom
fix/dn-billing-revert-status

Conversation

@sayanthns

Copy link
Copy Markdown
Contributor

Follow-up to #25. unmark_consolidated_dns_billed recomputed per_billed but not status, so a clubbed DN stayed Completed after the SI was cancelled/deleted. Add set_status(update=True). Caught by the UAT regression test.

unmark_consolidated_dns_billed called update_billing_status (recomputes
per_billed) but not set_status, so a clubbed DN stayed "Completed" after the
consolidated SI was cancelled/deleted instead of reverting to "To Bill".
Add dn.set_status(update=True) after the recompute. Caught by the UAT
regression test test_clubbed_dn_billing_status_flips_on_submit_and_reverts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sayanthns sayanthns merged commit 2d435b8 into main Jun 26, 2026
@sayanthns sayanthns deleted the fix/dn-billing-revert-status branch June 26, 2026 19:50
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