ArnesSI / netbox-inventory

Manage your hardware inventory in NetBox
MIT License
215 stars 21 forks source link

Automatic assign assets from Puchase to a Delivery #143

Closed Eraseth closed 9 months ago

Eraseth commented 10 months ago

When you bind a Delivery to a Purchases the assets are not associated with the Delivery (they are not listed in the Delivery, it is required to jump to the Purchase).

Can the assignment of a Delivery to a Purchase bind the assets to the purchase ? Or it is a problem if there is multiple deliveries for one purchase ?

matejv commented 9 months ago

Each Purchase can have many Deliveries. There is no way to automatically know which Assets go to what Delivery so it doesn't make sense to start changing Assets when a Delivery is associated to Purchase.

The opposite way: have Assets added to Delivery and then edit Delivery - Purchase relation will change Assets that are associated with that Delivery. Purchase field will be updated. But a Delivery can have exactly one Purchase, so this is possible to be automated.