DigiKey, LCSC, and potentially other suppliers provide APIs where orders can be tracked.
We should have a section where these orders are listed, showing data such as the order date, expected arrival date (if known), and listing the parts within them.
Any parts that are discovered in an order should have their supplier SKU checked against existing parts, and the value of the "Incoming Stock" for that part incremented by the quantity included in the order.
If the part does not yet exist, it should be created and the Incoming Stock number set.
Ideally orders would be autodiscovered by querying the supplier's API, and then populating the local database. A management command should also be created to execute refreshes of this information so the state of orders can be shown within the UI.
DigiKey, LCSC, and potentially other suppliers provide APIs where orders can be tracked.
We should have a section where these orders are listed, showing data such as the order date, expected arrival date (if known), and listing the parts within them.
Any parts that are discovered in an order should have their supplier SKU checked against existing parts, and the value of the "Incoming Stock" for that part incremented by the quantity included in the order.
If the part does not yet exist, it should be created and the Incoming Stock number set.
Ideally orders would be autodiscovered by querying the supplier's API, and then populating the local database. A management command should also be created to execute refreshes of this information so the state of orders can be shown within the UI.