Part-DB / Part-DB-server

Part-DB is an Open source inventory management system for your electronic components
https://docs.part-db.de/
GNU Affero General Public License v3.0
850 stars 91 forks source link

average cost of parts in stock #447

Open bdale opened 8 months ago

bdale commented 8 months ago

As a small business owner with an electronics part inventory, a feature of partkeepr I got used to having was average price for each part I have in inventory. I don't see any equivalent in Part-DB, and I note that this information seems to have been dropped when importing my existing partkeepr database.

The price data was collected by including the price (per item or per lot) when stock was added, and for each part in the database the average price of all items currently in stock was maintained.

While I understand that many times what matters is what it would cost to get more of a part, for tax accounting purposes and understanding the actual cost of goods sold that are built from parts in existing inventory, knowing what the parts on hand cost at the time they were purchased is important.

Am I just missing something about how this information is stored in Part-DB today? If not, I'd love to see this ability added.

jbtronics commented 8 months ago

Part-DB does not store the average price in database, but calculate it dynamically out of the price infos: image

The yellow marked values, are the average price range. So basically the average price for the maximum acquireable amount (so with the highest discount) to the average price for the miniumm acquireable amount (e.g. 1 with the lowest discount). The prices are averaged across all suppliers/distributors.

bdale commented 8 months ago

Ok, that's what it looked like it was doing. I can see why that is useful, but it's not what I need. Fortunately, it looks like InvenTree does what I need and there's a path for migrating my existing partkeepr data, so I'll give that a try instead.

henrikkoch commented 7 months ago

Can you somehow see the value of your whole inventory (I mean the total amount/value)?

LtMost commented 6 months ago

Would it be possible to get the average price of a part in the BOM or an average price of the Item if i would use the parts in the BOM "X" times.