cdb/docs/Transaction.md

18 lines
691 B
Markdown
Raw Normal View History

2024-04-29 11:13:12 +00:00
# Transaction
2024-09-02 16:40:02 +00:00
A Transaction represents an actual instance of an Item Variant.
## Supply
When you obtain an item and add it to your inventory a Transaction gets created. This is one unit of the item.
Transactions can carry some information:
- Price - The price this item was acquired at
- Origin - Where this item is from
- Location - The [Location](Location.md) of the item
## Consume
If an item gets used or is removed from the inventory, you consume the transaction.
This adds some additional information to it:
- Price - The price of the item at removal. e.g the selling price, or if negative cost of removal
- Destination - Where this item went, e.g a person who requested this item