Repository navigation
inventory: per-invoice items, returns, usage, pictures, monthly sweep - #484
Merged
Merged
Conversation
… sweep catch-up - POST /inventory/items records an item for a picked ledger transaction; one invoice can yield several items that share it as their source - exit records gain the 'returned' kind; the latest record wins the status (in-use / returned / disposed) with returnedDate alongside disposedDate - items track usage (active / idle) and keep up to 8 picture URLs - DELETE tombstones the item's seed (dismissed seeds), so removed items and hand-split invoices are never re-derived by the sweep or ledger writes - sweepInventory replaces the import endpoint: POST /inventory/sweep and the monthly report archive generation catch the inventory up automatically - CLI: bookkeeping inventory-import becomes inventory-sync
…tures - Add opens a picker over the ledger's expenses: pick an invoice, describe the item, add it; the form stays open so one payment that bought two things records both, sharing the invoice as their source - exit records gain Return alongside Dispose; the status badge shows on balance / returned / disposed with the exit date - rows track active vs idle use; 'in use' total becomes 'on balance' - pictures attach by link (photo or shop product image) with thumbnails - the per-row remove button and 'Scan ledger' are gone: removal is API/CLI-only, and catch-up runs on the monthly report - wording says invoice, not ledger
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.
What
POST /api/bookkeeping/inventory/itemsrecords an item for a picked ledger transaction; one invoice can yield several items that share it as their source record. The tab's Add button opens a picker over the ledger's expenses (searchable), keeps the form open for repeated adds.returnedkind (date + note, no proceeds). Status derives from the latest record: on balance / returned / disposed, withreturnedDatealongsidedisposedDate.usagefield, inline select).addImage/removeImageUrledits attach picture URLs (photo or shop product image) with thumbnails in the row.sweepInventoryfirst (count in the response); CLIbookkeeping inventory-importbecomesinventory-syncoverPOST /inventory/sweep. The import endpoint is deleted.Verification
bookkeeping-inventory(16) +api-bookkeeping(23, incl. archive route with the sweep hook) green; typecheck greenbookkeeping-inventory(21),bookkeeping-inventory-nav,finance-surface, contracts (architecture/coverage/convergence, parity) green