Fava extension for beancount physical inventory balances
Project description
fava_inventory
This simple extension adds an inventory page in fava with an up-to-date physical inventory count.
Installation
pip install fava_inventory
Configuration
2000-01-01 custom "fava-extension" "fava_inventory" "[('Consignment', 'In-Transit', 'In-Stock'), 'inventory.beancount']"
The example above tells the extension to look for commodity entries in inventory.beancount, then summarize inventory balances in accounts containing "Consignment", "In-Transit" and "In-Stock" in their names.
Usage
Inventory list
Define SKUs in a beancount file (eg inventory.beancount) like so:
2020-01-01 commodity BH0107B
name: "Baby Wash Basin - Blue"
2020-01-01 commodity BH0107P
name: "Baby Wash Basin - Pink"
2020-01-01 commodity BH0107Y
name: "Baby Wash Basin - Yellow"
2020-01-01 commodity BH0113J
name: "Baby Bath Towel - Wagner Magical Jungle"
Accounting Entires Example
-
Initial purchase of physical inventory
2020-07-17 * "Inventory purchase" Assets:Current:Inventory:In-Transit 5 FD0201P {4.74 AUD} Liabilities:Current:AccountsPayable:Supplier
-
Stock arrival
2020-08-17 * "Stock Arrival" Assets:Current:Inventory:In-Transit -4 FD0201P {} Assets:Current:Inventory:In-Stock 4 FD0201P {4.74 AUD}
-
Sales
2020-08-26 * "Shopify sales" order: "1037" Assets:Current:Inventory:In-Stock -1 FD0201P {} @ 12.95 AUD Income:Operating:A-Revenue:Shopify -20.00 AUD Expenses:Transaction-Fee:Bank 1.71 AUD Expenses:Shipping 8.95 AUD Income:Operating:Z-COGS
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fava_inventory-1.0.1.tar.gz
(4.7 kB
view details)
File details
Details for the file fava_inventory-1.0.1.tar.gz
.
File metadata
- Download URL: fava_inventory-1.0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6268db704d1f04065e15cd01c1a596bdeecb2ba78f28d445762c4c1c440b8ff3 |
|
MD5 | 6c7862072cd040991c37fa3a7db0ff8a |
|
BLAKE2b-256 | 9636722c2b035b16042f4bc973cf21bea2e64ab191f4db44ba84d8191449460d |