cdb/docs/Transaction.md

19 lines
731 B
Markdown
Raw Permalink 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
2024-09-23 07:26:11 +00:00
- Note - General notes
2024-09-02 16:40:02 +00:00
## Consume
If an item gets used or is removed from the inventory, you consume the transaction.
This adds some additional information to it:
2024-09-23 07:26:11 +00:00
- Price - The price of the item at removal. e.g a selling price, or a negative value can represent cost of removal
2024-09-02 16:40:02 +00:00
- Destination - Where this item went, e.g a person who requested this item