Add scoped desktop stock reporting for Posnic Business - #1022
Closed
sridharkalaibala wants to merge 7 commits into
Closed
sridharkalaibala wants to merge 7 commits into
sridharkalaibala wants to merge 7 commits into
Conversation
This was referenced Sep 29, 2026
Contributor
Author
|
The complete Business companion stack, including this change, is integrated into develop through #1023. All checks, including CodeQL, passed before merge. Closing this superseded stacked PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stored inventory was not available through the separate Business reporting API. This adds bounded desktop stock preparation, strict partial-coverage validation, Community publication and an authenticated stock endpoint with live item ACL and branch checks. Cloud continues to read prepared snapshots only; the paired Gateway change transports them.
The scan preserves signed unit thousandths and item/branch reorder thresholds, rejects ambiguous shared balances and duplicate logical IDs, and reports unavailable coverage explicitly. The result never claims complete inventory truth. Stock data cannot overwrite daily or register summaries.
Validation: 14 stock source/preparation tests, 11 stock publication/read tests, 19 Business HTTP tests, 9 register-publication regressions and 3 cross-repository tests pass. Nine stock unit tests, 24 repository checks, relevant lint/format, runtime/declaration/attribution checks and generated API consistency pass. OpenAPI retains 14 existing ambiguity warnings.
Depends on the register-summary stack in #1020. Companions: Gateway #27 and mobile #16. Concurrent receiving/sync reconciliation, stock alerts and physical-device qualification remain open. No server deployment or production-readiness claim.