Skip to content

Sync Item Master stock to inventory ledger - #13

Merged
OmegaLSKJ merged 3 commits into
mainfrom
codex/item-master-stock-sync
Sep 23, 2026
Merged

OmegaLSKJ merged 3 commits into
mainfrom
codex/item-master-stock-sync

Conversation

@OmegaLSKJ

Copy link
Copy Markdown
Owner

Item Master stock values were saved only as form data, while all stock screens calculate balances from stock_movements. This left saved master stock unchanged in inventory, purchase, and sales.

This change creates or updates the submitted item batches and posts only the ledger adjustment needed to reach each entered balance. It also serves the live stock-position rows for the stock API resource, preventing the production Unknown ERP resource error.

Validation: next build compiled successfully; the final TypeScript check remains blocked by the existing unrelated TransactionImport.tsx unknown value error.

@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
borgangdrugdistributors Ready Ready Preview Sep 23, 2026 4:49pm UTC

@OmegaLSKJ
OmegaLSKJ force-pushed the codex/item-master-stock-sync branch from 6c4c369 to 4412c0f Compare September 23, 2026 16:48
@OmegaLSKJ
OmegaLSKJ merged commit d6527b2 into main Sep 23, 2026
6 of 7 checks passed

This branch was successfully deployed

1 active deployment
Preview — 4412c0f2 Deployed Sep 23, 2026 by vercel[bot]
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