Inventory Management
Core Concepts
Position Types
# Simple Position (No Cost)
Assets:Bank:Checking 100.00 USD
# Position with Cost Basis
Assets:Invest:VTSAX 10 VTSAX {100.00 USD, "lot-1"}
Inventory Operations
- Augmentations (Adding to inventory):
2024-01-15 * "Buy shares"
Assets:Invest:STOCK 50 STOCK {25.00 USD, "lot-1"}
Assets:Bank:Checking -1250.00 USD
- Reductions (Removing from inventory):
2024-01-20 * "Sell shares"
Assets:Invest:STOCK -25 STOCK {25.00 USD}
Assets:Bank:Checking 625.00 USD
Booking Methods
1. STRICT (Default)
2024-01-01 open Assets:Invest:STOCK "STRICT"
- Requires exact lot match
- Errors on ambiguous matches
- Exception: Total matches allowed
2. FIFO
2024-01-01 open Assets:Invest:STOCK "FIFO"
- Selects oldest matching lots
- Automatically resolves ambiguity
- Matches chronologically
3. LIFO
2024-01-01 open Assets:Invest:STOCK "LIFO"
- Selects newest matching lots
- Reverse chronological order
- Best for tax optimization
4. NONE
2024-01-01 open Assets:Invest:STOCK "NONE"
- No lot matching
- Allows mixed signs
- Similar to Ledger's behavior