Skip to content

Submit accounting adjustments - #63

Merged
ac000 merged 1 commit into
masterfrom
bsas
Oct 10, 2026
Merged

ac000 merged 1 commit into
masterfrom
bsas

Conversation

@ac000

@ac000 ac000 commented Oct 9, 2026

Copy link
Copy Markdown
Owner

After triggering a business source adjustment summary, you should then submit an accounting adjustment if any or submit a zero adjustments request.

The user is now prompted about the above after triggering a BSAS and the accounting adjustments are now submitted.

Copilot AI balanced review requested due to automatic review settings October 9, 2026 19:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Uninitialized request data, misleading quit behavior, swallowed failures, and temporary-file leaks must be fixed.

2 open findings
What changed in this PR

Adds accounting-adjustment submission after triggering a Business Source Adjustable Summary.

Changes:

  • Prompts users to submit adjustments or a zero-adjustment request.
  • Validates the returned calculation ID.
  • Displays submission responses.
File Description
src/​itsa.c Implements accounting-adjustment submission workflows.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/itsa.c Outdated
Comment thread src/itsa.c
Copilot AI balanced review requested due to automatic review settings October 9, 2026 19:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Explicit-date requests use an uninitialized tax year, and adjustment submission failures are not propagated.

3 open findings
2 resolved since last review

🧠 Review effort: Balanced

Comment thread src/itsa.c Outdated
Comment thread src/itsa.c Outdated
Comment thread src/itsa.c
Copilot AI balanced review requested due to automatic review settings October 9, 2026 19:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Advertised cancellation paths currently return inconsistent failure statuses.

1 open finding
3 resolved since last review

🧠 Review effort: Balanced

Comment thread src/itsa.c
Copilot AI balanced review requested due to automatic review settings October 9, 2026 19:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Edited accounting periods can cause the follow-up adjustment request to use the wrong tax year.

1 open finding
1 resolved since last review

🧠 Review effort: Balanced

Comment thread src/itsa.c Outdated
After triggering a business source adjustment summary, you should then
submit an accounting adjustment if any or submit a zero adjustments
request.

The user is now prompted about the above after triggering a BSAS and the
accounting adjustments are now submitted.

This re-works trigger_bsas() to not allow the editing of the JSON being
submitted as there is no need to. The only thing to change is the start
and end date and that is either calculated automatically or specified by
the user when calling this function.

Signed-off-by: Andrew Clayton <ac@sigsegv.uk>
Copilot AI balanced review requested due to automatic review settings October 10, 2026 01:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Reversed endpoint parameters and stale file-descriptor handling can prevent successful adjustment submission.

2 open findings
1 resolved since last review

🧠 Review effort: Balanced

Comment thread src/itsa.c
Comment thread src/itsa.c
@ac000
ac000 merged commit 36f3663 into master Oct 10, 2026
8 checks passed
@ac000
ac000 deleted the bsas branch October 10, 2026 03:48
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.

2 participants