ArnesSI / netbox-inventory

Manage your hardware inventory in NetBox
MIT License
191 stars 16 forks source link

Allow deliveries without purchase #160

Open alehaa opened 2 months ago

alehaa commented 2 months ago

Sometimes there can be deliveries with no specific purchase. An example would be waranty hardware replacements. I therefore suggest making Delivery.purchase an optional field.

matejv commented 2 days ago

The code that handles asset import from CSV would have to account for this. It can automatically create new purchases and deliveries if a matching one does not exist yet.

Other than that it should be fairly straightforward to do.

matejv commented 2 days ago

Should a Delivery without purchase have a Supplier or not? Do we need to add Delivery.supplier field?

alehaa commented 1 day ago

Hmm. Good point, I hadn't thought of that. It would make sense to have a supplier, since someone has to send the parts.

Perhaps another (and cleaner) way to implement this would be to use purchases linked to the warranty case instead of having a price attached? However, in this case I think we should add an option to select a manufacturer instead of a supplier for the purchase if the hardware is shipped directly from the manufacturer?